|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.core.id.IntegerID
public class IntegerID
Field Summary | |
---|---|
static java.lang.String |
PROTOCOL
|
Fields inherited from interface com.metamatrix.core.id.ObjectID |
---|
DELIMITER |
Constructor Summary | |
---|---|
protected |
IntegerID(int id)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Compares this object to another. |
boolean |
equals(java.lang.Object obj)
/** Returns true if the specified object is semantically equal to this instance. |
java.lang.String |
getProtocol()
Return the name of the protocol that this factory uses. |
int |
getValue()
|
int |
hashCode()
Get hash code for object |
java.lang.String |
toString()
Returns a string representing the current state of the object. |
java.lang.String |
toString(char delim)
Returns a string representing the current state of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOCOL
Constructor Detail |
---|
protected IntegerID(int id)
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
compareTo()
.
equals
in class java.lang.Object
obj
- the object that this instance is to be compared to.
public int compareTo(java.lang.Object obj)
equals()
, meaning
that (compare(x, y)==0) == (x.equals(y))
.
compareTo
in interface ObjectID
compareTo
in interface java.lang.Comparable
obj
- the object that this instance is to be compared to; may not be null.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this instance.public java.lang.String toString()
toString
in interface ObjectID
toString
in class java.lang.Object
public java.lang.String toString(char delim)
ObjectID
toString
in interface ObjectID
delim
- the delimiter that should be used
ObjectID.toString(char)
public java.lang.String getProtocol()
getProtocol
in interface ObjectID
public int getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |