|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmlspecs.samples.table.TableImplementation
An implementation of the Table interface.
Class Specifications |
private represents entries <- this.abstractValue(); |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Specifications inherited from interface Table |
instance public invariant this.entries != null&&( \forall org.jmlspecs.models.JMLType e; this.entries.has(e); e instanceof org.jmlspecs.samples.table.Entry); instance public invariant ( \forall org.jmlspecs.samples.table.Entry e1; this.entries.has(e1); ( \forall org.jmlspecs.samples.table.Entry e2; this.entries.has(e2)&&!(e1.equals(e2)); !(e1.index.equals(e2.index)))); public initially this.entries != null&&this.entries.isEmpty(); |
Model Field Summary |
Model fields inherited from class java.lang.Object |
_getClass, objectState, theString |
Model fields inherited from interface org.jmlspecs.samples.table.Table |
entries |
Ghost Field Summary |
Ghost fields inherited from class java.lang.Object |
objectTimesFinalized, owner |
Field Summary | |
private Hashtable |
table
The representation of this Table. |
Constructor Summary | |
TableImplementation()
Initialize this Table to contain the empty set of entries. |
Model Method Summary | |
JMLValueSet |
abstractValue()
Return the set of entries that are, abstractly, in this Table. |
Model methods inherited from class java.lang.Object |
hashValue |
Method Summary | |
void |
addEntry(Entry e)
Add the given entry to this table. |
boolean |
isUsedIndex(JMLType d)
Is the given index used in the table? |
JMLType |
mapTo(JMLType d)
Return the value at the given index. |
void |
removeEntry(JMLType d)
Take out the given entry from this table. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Hashtable table
Constructor Detail |
public TableImplementation()
Model Method Detail |
public JMLValueSet abstractValue()
Method Detail |
public boolean isUsedIndex(JMLType d)
Table
isUsedIndex
in interface Table
public void addEntry(Entry e)
Table
addEntry
in interface Table
public void removeEntry(JMLType d)
Table
removeEntry
in interface Table
public JMLType mapTo(JMLType d)
Table
mapTo
in interface Table
public String toString()
toString
in class Object
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |