Package soot.util
Class UnmodifiableIterableSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- soot.util.HashChain<T>
-
- soot.util.IterableSet<E>
-
- soot.util.UnmodifiableIterableSet<E>
-
- Type Parameters:
E
-
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,Set<E>
,Chain<E>
public class UnmodifiableIterableSet<E> extends IterableSet<E>
An unmodifiable version of the IterableSet class- Author:
- Steven Arzt
- 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 UnmodifiableIterableSet()
UnmodifiableIterableSet(IterableSet<E> original)
Creates a new unmodifiable iterable set as a copy of an existing one
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E o)
Adds the given object to this HashChain.boolean
forceRemove(Object o)
boolean
remove(Object o)
Removes the given object from this Chain.-
Methods inherited from class soot.util.IterableSet
asUnmodifiable, clone, equals, hashCode, intersection, intersects, isStrictSubsetOf, isStrictSupersetOf, isSubsetOf, isSupersetOf, toString, union
-
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
-
UnmodifiableIterableSet
public UnmodifiableIterableSet()
-
UnmodifiableIterableSet
public UnmodifiableIterableSet(IterableSet<E> original)
Creates a new unmodifiable iterable set as a copy of an existing one- Parameters:
original
- The original set to copy
-
-
Method Detail
-
add
public boolean add(E o)
Description copied from class:HashChain
Adds the given object to this HashChain.- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceSet<E>
- Overrides:
add
in classIterableSet<E>
-
remove
public boolean remove(Object o)
Description copied from interface:Chain
Removes the given object from this Chain. Parameter has to be of typeObject
to be compatible with theCollection
interface.
-
forceRemove
public boolean forceRemove(Object o)
-
-