public class SecondaryAndAdditionalData
extends java.lang.Object
Class for storing HIBC LIC secondary and additional data.
Constructor and Description |
---|
SecondaryAndAdditionalData() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
SecondaryAndAdditionalData value. |
java.time.LocalDateTime |
getDateOfManufacture()
Identifies date of manufacture.
|
java.time.LocalDateTime |
getExpiryDate()
Identifies expiry date.
|
HIBCLICDateFormat |
getExpiryDateFormat()
Identifies expiry date format.
|
java.lang.String |
getLotNumber()
Identifies lot or batch number.
|
int |
getQuantity()
Identifies quantity, must be integer value from 0 to 500.
|
java.lang.String |
getSerialNumber()
Identifies serial number.
|
int |
hashCode()
Returns the hash code for this instance.
|
void |
parseFromString(java.lang.String secondaryDataCodetext)
Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.
|
void |
setDateOfManufacture(java.util.Date value)
Deprecated.
Use setDateOfManufacture(LocalDateTime value) instead
|
void |
setDateOfManufacture(java.time.LocalDateTime value)
Identifies date of manufacture.
|
void |
setExpiryDate(java.util.Date value)
Deprecated.
Use setExpiryDate(LocalDateTime value) instead
|
void |
setExpiryDate(java.time.LocalDateTime value)
Identifies expiry date.
|
void |
setExpiryDateFormat(HIBCLICDateFormat value)
Identifies expiry date format.
|
void |
setLotNumber(java.lang.String value)
Identifies lot or batch number.
|
void |
setQuantity(int value)
Identifies quantity, must be integer value from 0 to 500.
|
void |
setSerialNumber(java.lang.String value)
Identifies serial number.
|
java.lang.String |
toString()
Converts data to string format according HIBC LIC specification.
|
public HIBCLICDateFormat getExpiryDateFormat()
Identifies expiry date format.
public void setExpiryDateFormat(HIBCLICDateFormat value)
Identifies expiry date format.
public java.time.LocalDateTime getExpiryDate()
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
public void setExpiryDate(java.time.LocalDateTime value)
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
@Deprecated public void setExpiryDate(java.util.Date value)
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
public java.lang.String getLotNumber()
Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
public void setLotNumber(java.lang.String value)
Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
public java.lang.String getSerialNumber()
Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
public void setSerialNumber(java.lang.String value)
Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
public java.time.LocalDateTime getDateOfManufacture()
Identifies date of manufacture. Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue
public void setDateOfManufacture(java.time.LocalDateTime value)
Identifies date of manufacture. Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue
@Deprecated public void setDateOfManufacture(java.util.Date value)
Identifies date of manufacture. Date of manufacture can be set to DateTime.MinValue in order not to use this field. Default value: DateTime.MinValue
public int getQuantity()
Identifies quantity, must be integer value from 0 to 500. Quantity can be set to -1 in order not to use this field. Default value: -1
public void setQuantity(int value)
Identifies quantity, must be integer value from 0 to 500. Quantity can be set to -1 in order not to use this field. Default value: -1
public java.lang.String toString()
Converts data to string format according HIBC LIC specification.
toString
in class java.lang.Object
public void parseFromString(java.lang.String secondaryDataCodetext)
Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.
secondaryDataCodetext
- Formatted string.public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified SecondaryAndAdditionalData
value.
equals
in class java.lang.Object
obj
- An SecondaryAndAdditionalData
value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object