public class IterableSet<T> extends HashChain<T> implements Set<T>
HashChain.Link<X extends E>, HashChain.LinkIterator<X extends E>
emptyIterator, firstItem, lastItem, map, stateCount
Constructor and Description |
---|
IterableSet() |
IterableSet(Collection<T> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T o)
Adds the given object to this HashChain.
|
UnmodifiableIterableSet<T> |
asUnmodifiable() |
Object |
clone() |
boolean |
equals(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(Object o)
Removes the given object from this Chain.
|
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, iterator, iterator, iterator, listToHashChain, removeFirst, removeLast, size, snapshotIterator, snapshotIterator, swapWith, toList
addAll, isEmpty, removeAll, retainAll, toArray, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
public IterableSet(Collection<T> c)
public IterableSet()
public boolean add(T o)
HashChain
public boolean remove(Object o)
Chain
Object
to be compatible with the
Collection
interface.public boolean equals(Object o)
public int hashCode()
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 String toString()
HashChain
public UnmodifiableIterableSet<T> asUnmodifiable()
Copyright © 2019 Sable. All rights reserved.