Package co.cryptoservice.sdk
Record Class CbomComponent
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.CbomComponent
- Record Components:
name- the name, or null when absentproperties- the properties, or null when absenttype- the recipient type, or null when absentversion- the version, or null when absent
public record CbomComponent(String name, List<CbomProperty> properties, String type, String version)
extends Record
One element of
components.-
Constructor Summary
ConstructorsConstructorDescriptionCbomComponent(String name, List<CbomProperty> properties, String type, String version) Creates an instance of aCbomComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepropertiesrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
CbomComponent
Creates an instance of aCbomComponentrecord class.- Parameters:
name- the value for thenamerecord componentproperties- the value for thepropertiesrecord componenttype- the value for thetyperecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-