public class IterableSet<T> extends HashChain<T> implements java.util.Set<T>
HashChain.Link<X extends E>, HashChain.LinkIterator<X extends E>
emptyIterator, firstItem, lastItem, map, stateCount
Constructor and Description |
---|
IterableSet() |
IterableSet(java.util.Collection<T> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T o)
Adds the given object to this HashChain.
|
UnmodifiableIterableSet<T> |
asUnmodifiable() |
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
IterableSet<T> |
intersection(IterableSet<T> other) |
boolean |
intersects(IterableSet<T> other) |
boolean |
isStrictSubsetOf(IterableSet<T> other) |
boolean |
isStrictSupersetOf(IterableSet<T> other) |
boolean |
isSubsetOf(IterableSet<T> other) |
boolean |
isSupersetOf(IterableSet<T> other) |
boolean |
remove(java.lang.Object o)
Removes the given object from this Chain.
|
java.lang.String |
toString()
Returns a textual representation of the contents of this Chain.
|
IterableSet<T> |
union(IterableSet<T> other) |
addFirst, addLast, clear, contains, containsAll, follows, getElementsUnsorted, getFirst, getLast, getModificationCount, getPredOf, getSuccOf, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertOnEdge, insertOnEdge, insertOnEdge, insertOnEdge, iterator, iterator, iterator, listToHashChain, removeFirst, removeLast, size, snapshotIterator, snapshotIterator, swapWith, toList
addAll, isEmpty, removeAll, retainAll, toArray, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
public IterableSet(java.util.Collection<T> c)
public IterableSet()
public boolean add(T o)
HashChain
public boolean remove(java.lang.Object o)
Chain
Object
to be compatible
with the Collection
interface.public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isSubsetOf(IterableSet<T> other)
public boolean isSupersetOf(IterableSet<T> other)
public boolean isStrictSubsetOf(IterableSet<T> other)
public boolean isStrictSupersetOf(IterableSet<T> other)
public boolean intersects(IterableSet<T> other)
public IterableSet<T> intersection(IterableSet<T> other)
public IterableSet<T> union(IterableSet<T> other)
public java.lang.String toString()
HashChain
public UnmodifiableIterableSet<T> asUnmodifiable()