Package soot.util
Class IterableSet<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- soot.util.HashChain<T>
-
- soot.util.IterableSet<T>
-
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,Set<T>,Chain<T>
- Direct Known Subclasses:
UnmodifiableIterableSet
public class IterableSet<T> extends HashChain<T> implements Set<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class soot.util.HashChain
HashChain.Link<X extends E>, HashChain.LinkIterator<X extends E>
-
-
Field Summary
-
Fields inherited from class soot.util.HashChain
firstItem, lastItem, map, stateCount
-
-
Constructor Summary
Constructors Constructor Description IterableSet()IterableSet(Collection<T> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T o)Adds the given object to this HashChain.UnmodifiableIterableSet<T>asUnmodifiable()Objectclone()booleanequals(Object o)inthashCode()IterableSet<T>intersection(IterableSet<T> other)booleanintersects(IterableSet<T> other)booleanisStrictSubsetOf(IterableSet<T> other)booleanisStrictSupersetOf(IterableSet<T> other)booleanisSubsetOf(IterableSet<T> other)booleanisSupersetOf(IterableSet<T> other)booleanremove(Object o)Removes the given object from this Chain.StringtoString()Returns a textual representation of the contents of this Chain.IterableSet<T>union(IterableSet<T> other)-
Methods inherited from class soot.util.HashChain
addFirst, addLast, clear, contains, containsAll, emptyIterator, follows, getElementsUnsorted, getFirst, getLast, getModificationCount, getPredOf, getSuccOf, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, iterator, iterator, iterator, listToHashChain, removeFirst, removeLast, size, snapshotIterator, snapshotIterator, swapWith, toList
-
Methods inherited from class java.util.AbstractCollection
addAll, isEmpty, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
IterableSet
public IterableSet(Collection<T> c)
-
IterableSet
public IterableSet()
-
-
Method Detail
-
add
public boolean add(T o)
Description copied from class:HashChainAdds the given object to this HashChain.
-
remove
public boolean remove(Object o)
Description copied from interface:ChainRemoves the given object from this Chain. Parameter has to be of typeObjectto be compatible with theCollectioninterface.
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
isSubsetOf
public boolean isSubsetOf(IterableSet<T> other)
-
isSupersetOf
public boolean isSupersetOf(IterableSet<T> other)
-
isStrictSubsetOf
public boolean isStrictSubsetOf(IterableSet<T> other)
-
isStrictSupersetOf
public boolean isStrictSupersetOf(IterableSet<T> other)
-
intersects
public boolean intersects(IterableSet<T> other)
-
intersection
public IterableSet<T> intersection(IterableSet<T> other)
-
union
public IterableSet<T> union(IterableSet<T> other)
-
toString
public String toString()
Description copied from class:HashChainReturns a textual representation of the contents of this Chain.
-
asUnmodifiable
public UnmodifiableIterableSet<T> asUnmodifiable()
-
-