|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasi.sim.basic.value.AbstractSimValueType jasi.sim.basic.value.AbstractComparableObject<Id> jasi.sim.basic.id.Id
public final class Id
Identifiers (IDs) for simulation elements, that are based on exact integers.
BigInteger
,
Serialized FormField Summary | |
---|---|
static Id |
ZERO
An invalid ID. |
Constructor Summary | |
---|---|
Id(Id id)
Construct an ID. |
|
Id(java.lang.String s)
Construct an ID. |
Method Summary | |
---|---|
int |
compareTo(Id o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject |
---|
isEQ, isGE, isGT, isLE, isLT, isNE |
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType |
---|
getContent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Id ZERO
Constructor Detail |
---|
public Id(Id id)
id
- A ID.public Id(java.lang.String s)
s
- The string representation of the ID.Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- That object which is compared with this object.
public int compareTo(Id o)
compareTo
in interface java.lang.Comparable<Id>
compareTo
in class AbstractComparableObject<Id>
o
- The Object to be compared.
Comparable.compareTo(Object)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |