|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsofya.mutator.MutationTable
sofya.mutator.StandardMutationTable
public class StandardMutationTable
A standard in-memory mutation table.
Large mutation tables may cause resource consumption problems.
Constructor Summary | |
---|---|
StandardMutationTable()
Creates a new mutation table. |
|
StandardMutationTable(StringTable st)
Creates a new mutation table. |
Method Summary | |
---|---|
boolean |
addMutation(Mutation m)
Adds a mutation to this mutation table. |
StringTable |
getStringTable()
Gets the string table that may be used to compact strings in the mutation table (optional operation). |
java.util.Iterator |
iterator()
Gets an iterator over the mutations stored in this mutation table (optional operation). |
int |
size()
Gets the size of this mutation table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardMutationTable()
public StandardMutationTable(StringTable st)
st
- String table to be used/extended when adding new mutations
to this table. Supports persistence of string encodings if this
table was previously read from file.Method Detail |
---|
public boolean addMutation(Mutation m)
MutationTable
addMutation
in class MutationTable
m
- Mutation to be added to this table.
true
if the mutation was successfully added to
this table.public java.util.Iterator iterator()
MutationTable
iterator
in class MutationTable
public int size()
MutationTable
size
in class MutationTable
public StringTable getStringTable()
MutationTable
In some situations, this method assists in supporting persistence
between file reads and writes. Implementations that do not wish
to support this functionality should return null
.
getStringTable
in class MutationTable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |