|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLValueBagSpecs
Special behavior for JMLValueBag not shared by JMLObjectBag.
JMLValueType,
JMLValueBag| Constructor Summary | |
JMLValueBagSpecs()
|
|
| Method Summary | |
abstract Object |
clone()
Return a deep copy of this object. |
int |
count(Object elem)
Tell many times the argument occurs ".equals" to one of the values in this bag. |
abstract int |
count(JMLType elem)
Tell many times the argument occurs ".equals" to one of the values in this bag. |
boolean |
has(Object elem)
Is the argument ".equals" to one of the values in this bag. |
abstract boolean |
has(JMLType elem)
Is the argument ".equals" to one of the values in this bag. |
abstract JMLValueBag |
insert(JMLType elem)
How many times does the argument occur as an objects representing values in the bag? |
abstract JMLValueBag |
insert(JMLType elem,
int cnt)
Returns a new bag that contains all the elements of this and also the given argument. |
abstract int |
int_size()
Tells the number of elements in the bag. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jmlspecs.models.JMLValueType |
equals |
| Methods inherited from interface org.jmlspecs.models.JMLType |
hashCode |
| Constructor Detail |
public JMLValueBagSpecs()
| Method Detail |
public abstract boolean has(JMLType elem)
has(Object),
count(JMLType)public boolean has(Object elem)
has(JMLType),
count(Object)public abstract int count(JMLType elem)
count(Object),
has(JMLType)public int count(Object elem)
count(JMLType),
has(Object)public abstract int int_size()
public abstract Object clone()
JMLValueType
clone in interface JMLValueTypeclone in class Objectpublic abstract JMLValueBag insert(JMLType elem)
Returns a new bag that contains all the elements of this and
also the given argument.,
insert(JMLType, int)
public abstract JMLValueBag insert(JMLType elem,
int cnt)
throws IllegalArgumentException
IllegalArgumentExceptioninsert(JMLType)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||