|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.samples.table.TableImplementation
An implementation of the Table interface.
| Field Summary | |
private Hashtable |
table
The representation of this Table. |
| Constructor Summary | |
TableImplementation()
Return the set of entries that are, abstractly, in this Table. |
|
| Method Summary | |
void |
addEntry(Entry e)
Add the given entry to this table. |
boolean |
isUsedIndex(JMLType d)
The model of the entries (rows) 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()
| Method Detail |
public boolean isUsedIndex(JMLType d)
Table
isUsedIndex in interface Tablepublic void addEntry(Entry e)
Table
addEntry in interface Tablepublic void removeEntry(JMLType d)
Table
removeEntry in interface Tablepublic JMLType mapTo(JMLType d)
Table
mapTo in interface Tablepublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||