|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLObjectBagEntry
Internal class used in the implementation of JMLObjectBag.
JMLObjectBag,
JMLObjectBagEntryNode| Field Summary | |
int |
count
The number of times the element occurs. |
Object |
theElem
The element in this bag entry. |
| Constructor Summary | |
JMLObjectBagEntry(Object e)
The type of the element in this entry. |
|
JMLObjectBagEntry(Object e,
int cnt)
Initialize this object to be for the given element with the given number of repetitions. |
|
| Method Summary | |
Object |
clone()
Make a clone of the given entry. |
boolean |
equalElem(Object othElem)
Are these elements equal? |
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. |
JMLObjectBagEntry |
insert(int numInserted)
Return a new bag entry with the same element as this but with the given number of repetitions added to the element's current count. |
String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final Object theElem
public final int count
| Constructor Detail |
public JMLObjectBagEntry(Object e)
public JMLObjectBagEntry(Object e,
int cnt)
| Method Detail |
public Object clone()
clone in interface JMLTypeclone in class Objectpublic boolean equalElem(Object othElem)
public boolean equals(Object obj)
equals in interface JMLTypeequals in class Objectpublic int hashCode()
hashCode in interface JMLTypehashCode in class Objectpublic JMLObjectBagEntry insert(int numInserted)
public String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||