|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLValueBagEntry
Internal class used in the implementation of JMLValueBag.
JMLValueBag,
JMLValueBagEntryNode| Field Summary | |
int |
count
The number of times the element occurs. |
JMLType |
theElem
The element in this bag entry. |
| Constructor Summary | |
JMLValueBagEntry(JMLType e)
The type of the element in this entry. |
|
JMLValueBagEntry(JMLType 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(JMLType 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. |
JMLValueBagEntry |
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 JMLType theElem
public final int count
| Constructor Detail |
public JMLValueBagEntry(JMLType e)
public JMLValueBagEntry(JMLType e,
int cnt)
| Method Detail |
public Object clone()
clone in interface JMLTypeclone in class Objectpublic boolean equalElem(JMLType othElem)
public boolean equals(Object obj)
equals in interface JMLTypeequals in class Objectpublic int hashCode()
hashCode in interface JMLTypehashCode in class Objectpublic JMLValueBagEntry 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 | ||||||||||