|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deri.wsmo4j.logicalexpression.terms.NumberedAnonymousIDImpl
public class NumberedAnonymousIDImpl
An interface representing an anonymous numbered identifier
Constructor Summary | |
---|---|
NumberedAnonymousIDImpl(byte id)
|
Method Summary | |
---|---|
void |
accept(org.omwg.logicalexpression.terms.Visitor v)
|
boolean |
equals(Object o)
The equals method implements an equivalence relation
on non-null object references. |
byte |
getNumber()
|
int |
hashCode()
If two objects are equal according to the equals(Object) method, then calling
the hashCode method on each of the two objects must produce the same integer
result. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NumberedAnonymousIDImpl(byte id)
Method Detail |
---|
public String toString()
toString
in class Object
public byte getNumber()
getNumber
in interface org.omwg.logicalexpression.terms.NumberedAnonymousID
public void accept(org.omwg.logicalexpression.terms.Visitor v)
accept
in interface org.omwg.logicalexpression.terms.Term
public boolean equals(Object o)
The equals
method implements an equivalence relation
on non-null object references. Numbered Anonymous IDs are equal when they
have the same number within
the same scope, this method only checks the former.
It is generally necessary to override the hashCode
method whenever this method
is overridden.
equals
in class Object
o
- Object of Type Numbered Anonymous ID
true
if this Numbered Anonymous ID's number is the same as the obj
argument's number; false
otherwise.Object.equals(java.lang.Object)
,
Object.hashCode()
public int hashCode()
If two objects are equal according to the equals(Object)
method, then calling
the hashCode
method on each of the two objects must produce the same integer
result. However, it is not required that if two objects are unequal according to
the equals(Object)
method, then calling the hashCode
method on each of the two
objects must produce distinct integer results.
This method should be overriden, when the equals(Object)
method is overriden.
hashCode
in class Object
Object.hashCode()
,
Object.equals(Object)
,
com.ontotext.wsmo4j.common.NumberedIDImpl#getNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |