Package soot.jimple.infoflow.collect
Class MutableTwoElementSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
soot.jimple.infoflow.collect.MutableTwoElementSet<E>
- Type Parameters:
E-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
An modifiable set holding up to two elements. Particularly useful within flow
functions.
- Author:
- Eric Bodden, Steven Arzt
- See Also:
-
FlowFunction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaniterator()intsize()static <E> MutableTwoElementSet<E>twoElementSet(E first, E second) Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
first
-
second
-
-
Constructor Details
-
MutableTwoElementSet
public MutableTwoElementSet() -
MutableTwoElementSet
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceSet<E>- Overrides:
addin classAbstractCollection<E>
-
twoElementSet
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-