Package randoop.util
Class CheckpointingSet<E extends @Signed Object>
- java.lang.Object
-
- randoop.util.CheckpointingSet<E>
-
-
Field Summary
Fields Modifier and Type Field Description CheckpointingMultiMap<E,Boolean>
map
-
Constructor Summary
Constructors Constructor Description CheckpointingSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E elt)
boolean
addAll(Collection<? extends E> c)
void
clear()
boolean
contains(@UnknownSignedness Object elt)
boolean
containsAll(Collection<?> c)
boolean
isEmpty()
Iterator<E>
iterator()
void
mark()
Checkpoint the state of the data structure, for use byundoToLastMark()
.boolean
remove(@UnknownSignedness Object elt)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
@PolySigned Object[]
toArray()
<T> T[]
toArray(T[] a)
String
toString()
void
undoToLastMark()
Undo changes since the last call tomark()
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
-
-
-
Field Detail
-
map
public final CheckpointingMultiMap<E extends @Signed Object,Boolean> map
-
-
Method Detail
-
add
public boolean add(E elt)
-
contains
public boolean contains(@UnknownSignedness Object elt)
-
remove
public boolean remove(@UnknownSignedness Object elt)
-
size
public int size()
-
mark
public void mark()
Checkpoint the state of the data structure, for use byundoToLastMark()
.
-
undoToLastMark
public void undoToLastMark()
Undo changes since the last call tomark()
.
-
clear
public void clear()
-
addAll
public boolean addAll(Collection<? extends E> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E extends @Signed Object>
- Specified by:
containsAll
in interfaceSet<E extends @Signed Object>
-
toArray
public <T> T[] toArray(T[] a)
-
toArray
public @PolySigned Object[] toArray()
-
-