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.

Constructor Index

 o AgletID(byte[])
Constructs an aglet identifier with given byte array.
 o AgletID(String)

Method Index

 o equals(Object)
Compares two aglet identifiers.
 o hashCode()
Returns an integer suitable for hash table indexing.
 o toByteArray()
Returns byte array representation of the id.
 o toString()
Returns a human readable form of the aglet identifier.

Constructors

 o AgletID
  public AgletID(byte b[])
Constructs an aglet identifier with given byte array. Note that this will be removed in the future release
 o AgletID
  public AgletID(String rep)

Methods

 o 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
 o 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
 o 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
 o 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