|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLObjectValuePair
Pairs of Object and JMLType, used in the types
JMLObjectToValueRelation and JMLObjectToValueMap.
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.
JMLObjectToValueRelation,
JMLObjectToValueMap| Field Summary | |
Object |
key
The key of this pair. |
JMLType |
value
The value of this pair. |
| Constructor Summary | |
JMLObjectValuePair(Object dv,
JMLType 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(JMLType 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 JMLType value
| Constructor Detail |
public JMLObjectValuePair(Object dv,
JMLType 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(JMLType 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 | ||||||||||