Package de.gematik.bbriccs.vsdm.types
Record Class VsdmVendorIdentifier
java.lang.Object
java.lang.Record
de.gematik.bbriccs.vsdm.types.VsdmVendorIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionVsdmVendorIdentifier(char identifier, VsdmCheckDigitVersion version) Creates an instance of aVsdmVendorIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.static VsdmVendorIdentifierfrom(char identifier, VsdmCheckDigitVersion version) bytegenerate()inthashCode()Returns a hash code value for this object.charReturns the value of theidentifierrecord component.static VsdmVendorIdentifierparseV1(byte[] data) static VsdmVendorIdentifierparseV2(byte[] data, VsdmKeyVersion keyVersion) toString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
VsdmVendorIdentifier
Creates an instance of aVsdmVendorIdentifierrecord class.- Parameters:
identifier- the value for theidentifierrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
generate
public byte generate() -
parseV1
-
parseV2
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
from
-
identifier
public char identifier()Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-