|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLObjectEqualsPair
Pairs of Object and Object, used in the types
JMLObjectToEqualsRelation and JMLObjectToEqualsMap.
In a pair the first element is called the "key" and the second the "value". Both the key and the value in a pair must be non-null.
JMLObjectToEqualsRelation,
JMLObjectToEqualsMap| Field Summary | |
Object |
key
The key of this pair. |
Object |
value
The value of this pair. |
| Constructor Summary | |
JMLObjectEqualsPair(Object dv,
Object rv)
Initialize the key and value of this pair. |
|
| Method Summary | |
Object |
clone()
Return a clone of this object. |
boolean |
equals(Object obj)
Test whether this object's value is equal to the given argument. |
int |
hashCode()
Return a hash code for this object. |
boolean |
keyEquals(Object dv)
Tell whether this object's key is equal to the given key. |
String |
toString()
Return a string representation of this object. |
boolean |
valueEquals(Object rv)
Tell whether this object's key is equal to the given key. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final Object key
public final Object value
| Constructor Detail |
public JMLObjectEqualsPair(Object dv,
Object rv)
throws NullPointerException
NullPointerException| Method Detail |
public Object clone()
JMLType
clone in interface JMLTypeclone in class Objectpublic boolean keyEquals(Object dv)
equals(java.lang.Object)public boolean valueEquals(Object rv)
equals(java.lang.Object)public boolean equals(Object obj)
equals in interface JMLTypeequals in class ObjectkeyEquals(java.lang.Object)public int hashCode()
hashCode in interface JMLTypehashCode in class Objectpublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||