|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.core.id.StringID
public class StringID
| Field Summary | |
|---|---|
static java.lang.String |
PROTOCOL
|
| Fields inherited from interface com.metamatrix.core.id.ObjectID |
|---|
DELIMITER |
| Constructor Summary | |
|---|---|
protected |
StringID(long id)
|
protected |
StringID(java.lang.String 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. |
protected java.lang.String |
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 StringID(java.lang.String id)
protected StringID(long id)
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
compareTo().
equals in class java.lang.Objectobj - 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 ObjectIDcompareTo in interface java.lang.Comparableobj - 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 ObjectIDtoString in class java.lang.Objectpublic java.lang.String toString(char delim)
ObjectID
toString in interface ObjectIDdelim - the delimiter that should be used
ObjectID.toString(char)public java.lang.String getProtocol()
getProtocol in interface ObjectIDprotected java.lang.String getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||