SecondaryAndAdditionalData
Inheritance: java.lang.Object
public class SecondaryAndAdditionalData
Class for storing HIBC LIC secondary and additional data.
Constructors
Constructor | Description |
---|---|
SecondaryAndAdditionalData() |
Methods
Method | Description |
---|---|
equals(Object obj) | Returns a value indicating whether this instance is equal to a specified SecondaryAndAdditionalData value. |
getClass() | |
getDateOfManufacture() | Identifies date of manufacture. |
getExpiryDate() | Identifies expiry date. |
getExpiryDateFormat() | Identifies expiry date format. |
getLotNumber() | Identifies lot or batch number. |
getQuantity() | Identifies quantity, must be integer value from 0 to 500. |
getSerialNumber() | Identifies serial number. |
hashCode() | Returns the hash code for this instance. |
notify() | |
notifyAll() | |
parseFromString(String secondaryDataCodetext) | Instantiates secondary and additional supplemental data from string format according HIBC LIC specification. |
setDateOfManufacture(LocalDateTime value) | Identifies date of manufacture. |
setDateOfManufacture(Date value) | Identifies date of manufacture. |
setExpiryDate(LocalDateTime value) | Identifies expiry date. |
setExpiryDate(Date value) | Identifies expiry date. |
setExpiryDateFormat(HIBCLICDateFormat value) | Identifies expiry date format. |
setLotNumber(String value) | Identifies lot or batch number. |
setQuantity(int value) | Identifies quantity, must be integer value from 0 to 500. |
setSerialNumber(String value) | Identifies serial number. |
toString() | Converts data to string format according HIBC LIC specification. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
SecondaryAndAdditionalData()
public SecondaryAndAdditionalData()
equals(Object obj)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified SecondaryAndAdditionalData value.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | An SecondaryAndAdditionalData value to compare to this instance. |
Returns: boolean - true if obj has the same value as this instance; otherwise, false .
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDateOfManufacture()
public 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
Returns: java.time.LocalDateTime
getExpiryDate()
public LocalDateTime getExpiryDate()
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
Returns: java.time.LocalDateTime
getExpiryDateFormat()
public HIBCLICDateFormat getExpiryDateFormat()
Identifies expiry date format.
Returns: HIBCLICDateFormat
getLotNumber()
public String getLotNumber()
Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
Returns: java.lang.String
getQuantity()
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
Returns: int
getSerialNumber()
public String getSerialNumber()
Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
Returns: java.lang.String
hashCode()
public int hashCode()
Returns the hash code for this instance.
Returns: int - A 32-bit signed integer hash code.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
parseFromString(String secondaryDataCodetext)
public void parseFromString(String secondaryDataCodetext)
Instantiates secondary and additional supplemental data from string format according HIBC LIC specification.
Parameters:
Parameter | Type | Description |
---|---|---|
secondaryDataCodetext | java.lang.String | Formatted string. |
setDateOfManufacture(LocalDateTime value)
public void setDateOfManufacture(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
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.time.LocalDateTime |
setDateOfManufacture(Date value)
public void setDateOfManufacture(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
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date |
setExpiryDate(LocalDateTime value)
public void setExpiryDate(LocalDateTime value)
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.time.LocalDateTime |
setExpiryDate(Date value)
public void setExpiryDate(Date value)
Identifies expiry date. Will be used if ExpiryDateFormat is not set to None.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date |
setExpiryDateFormat(HIBCLICDateFormat value)
public void setExpiryDateFormat(HIBCLICDateFormat value)
Identifies expiry date format.
Parameters:
Parameter | Type | Description |
---|---|---|
value | HIBCLICDateFormat |
setLotNumber(String value)
public void setLotNumber(String value)
Identifies lot or batch number. Lot/batch number must be alphanumeric string with up to 18 sybmols length. .
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setQuantity(int value)
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
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setSerialNumber(String value)
public void setSerialNumber(String value)
Identifies serial number. Serial number must be alphanumeric string up to 18 sybmols length.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
toString()
public String toString()
Converts data to string format according HIBC LIC specification.
Returns: java.lang.String - Formatted string.
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |