Class aglet.AgletID
All Packages Class Hierarchy This Package Previous Next Index
Class aglet.AgletID
java.lang.Object
|
+----aglet.AgletID
- public class AgletID
- extends Object
- implements Serializable
The AgletID class represents the uniq identifier
given the aglet.
-
AgletID(byte[])
- Constructs an aglet identifier with given byte array.
-
AgletID(String)
-
-
equals(Object)
- Compares two aglet identifiers.
-
hashCode()
- Returns an integer suitable for hash table indexing.
-
toByteArray()
- Returns byte array representation of the id.
-
toString()
- Returns a human readable form of the aglet identifier.
AgletID
public AgletID(byte b[])
- Constructs an aglet identifier with given byte array.
Note that this will be removed in the future release
AgletID
public AgletID(String rep)
toByteArray
public byte[] toByteArray()
- Returns byte array representation of the id. The copy of array
is returned so that it cannot be altered.
Note that this will be removed in the future release
toString
public String toString()
- Returns a human readable form of the aglet identifier.
- Returns:
- the Aglet identity in text form.
- Overrides:
- toString in class Object
equals
public boolean equals(Object obj)
- Compares two aglet identifiers.
- Parameters:
- obj - the Aglet to be compared with.
- Returns:
- true if and only if the two Aglets are identical.
- Overrides:
- equals in class Object
hashCode
public int hashCode()
- Returns an integer suitable for hash table indexing.
- Returns:
- hash table indexing integer.
- Overrides:
- hashCode in class Object
All Packages Class Hierarchy This Package Previous Next Index