lime
Class LimeTupleID
java.lang.Object
|
+--lime.LimeTupleID
- All Implemented Interfaces:
- java.io.Serializable
- public class LimeTupleID
- extends java.lang.Object
- implements java.io.Serializable
Defines the identifier of Tuple
objects. The (globally unique)
identifier is generated when the tuple is inserted into the tuple space.
- Version:
- 1.0 alpha
- Author:
- Amy L. Murphy, Gian Pietro Picco
- See Also:
- Serialized Form
Constructor Summary |
LimeTupleID(long n)
Construct a new tuple identifier...guaranteed to be unique. |
Method Summary |
boolean |
equals(java.lang.Object id)
Tests two tuple identifiers for equality. |
int |
hashCode()
|
java.lang.String |
toString()
Returns a concise textual description for this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LimeTupleID
public LimeTupleID(long n)
- Construct a new tuple identifier...guaranteed to be unique.
equals
public boolean equals(java.lang.Object id)
- Tests two tuple identifiers for equality.
- Overrides:
equals
in class java.lang.Object
- Parameters:
id
- the tuple id to be compared with.- Returns:
true
if the two identifiers are the same,
false
otherwise.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Returns a concise textual description for this object.
- Overrides:
toString
in class java.lang.Object