Package opencard.opt.applet
Class ID
- java.lang.Object
-
- opencard.opt.applet.ID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Checks whether this ID equals another object.byte[]
getBytes()
Returns the ID as a byte array.int
hashCode()
Returns a hash code for the ID.java.lang.String
toString()
Returns the ID as a string.
-
-
-
Constructor Detail
-
ID
public ID(byte[] array)
Constructs the AppletID from a byte array.- Parameters:
array
- Byte array for initialization of the ID.
-
ID
public ID(java.lang.String hexString)
Construct the ID from a hexadecimal string.- Parameters:
hexString
- Hexadecimal string for initialization of the ID.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
Checks whether this ID equals another object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- The object to be compared with this ID.
-
getBytes
public byte[] getBytes()
Returns the ID as a byte array.- Returns:
- The ID as a byte array.
-
hashCode
public int hashCode()
Returns a hash code for the ID.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the ID as a string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The ID as a string.
-
-