All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.aglet.AgletID

java.lang.Object
   |
   +----com.ibm.aglet.AgletID

public class AgletID
extends Object
implements Serializable
The AgletID class represents the unique identifier given the aglet.


Constructor Index

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

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. Deprecated.
 o toString()
Returns a human readable form of the aglet identifier.

Constructors

 o AgletID
 public AgletID(byte b[])
Note: AgletID() is deprecated.

Constructs an aglet identifier with given byte array. Note that this will be removed in the future release

 o AgletID
 public AgletID(String rep)
Note: AgletID() is deprecated.

Constructs an aglet identifier with a given string. Note that this will be removed in the future release

Methods

 o toByteArray
 public byte[] toByteArray()
Note: toByteArray() is deprecated.

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