protected class AbstractExtendedSet.UnmodifiableExtendedSet extends AbstractExtendedSet.FilteredSet
Note that it extends AbstractExtendedSet instead of implementing
ExtendedSet because of the methods tailSet(Object),
headSet(Object), and subSet(Object, Object).
ExtendedSet.ExtendedIterator<X>| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExtendedSet.UnmodifiableExtendedSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
void |
clear(T from,
T to)
Removes from the set all the elements between
first and
last, both included. |
void |
complement()
Complements the current set.
|
ExtendedSet.ExtendedIterator<T> |
descendingIterator()
Gets the descending order iterator over the elements of type
T |
void |
fill(T from,
T to)
Adds to the set all the elements between
first and
last, both included. |
void |
flip(T e)
Adds the element if it not existing, or removes it if existing
|
ExtendedSet<T> |
headSet(T toElement) |
ExtendedSet.ExtendedIterator<T> |
iterator() |
protected ExtendedSet<T> |
raw() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
ExtendedSet<T> |
subSet(T fromElement,
T toElement) |
ExtendedSet<T> |
tailSet(T fromElement) |
ExtendedSet<T> |
unmodifiable()
Gets the read-only version of the current set
|
bitmapCompressionRatio, clone, collectionCompressionRatio, comparator, compareTo, complemented, complementSize, contains, containsAll, containsAny, containsAtLeast, convert, convert, debugInfo, descending, difference, differenceSize, empty, equals, first, get, hashCode, indexOf, intersection, intersectionSize, isEmpty, jaccardDistance, jaccardSimilarity, last, powerSet, powerSet, powerSetSize, powerSetSize, size, symmetricDifference, symmetricDifferenceSize, toArray, toArray, toString, union, unionSize, weightedJaccardDistance, weightedJaccardSimilarityprotected AbstractExtendedSet.UnmodifiableExtendedSet()
public boolean add(T e)
public boolean addAll(Collection<? extends T> c)
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public void clear(T from, T to)
ExtendedSetfirst and
last, both included. It supposes that there is an ordering
of the elements of type T and that the universe of all
possible elements is known.from - first elementto - last elementpublic void fill(T from, T to)
ExtendedSetfirst and
last, both included. It supposes that there is an ordering
of the elements of type T and that the universe of all
possible elements is known.from - first elementto - last elementpublic void complement()
ExtendedSetSortedSet.last() that do not exist in the
current set.ExtendedSet.complemented()public void flip(T e)
ExtendedSete - element to flipExtendedSet.symmetricDifference(Collection)public ExtendedSet.ExtendedIterator<T> iterator()
ExtendedSetiterator in interface ExtendedSet<T>iterator in interface Iterable<T>iterator in interface Collection<T>iterator in interface Set<T>iterator in class AbstractExtendedSet.FilteredSetpublic ExtendedSet.ExtendedIterator<T> descendingIterator()
ExtendedSetTdescendingIterator in interface ExtendedSet<T>descendingIterator in class AbstractExtendedSet.FilteredSetpublic ExtendedSet<T> headSet(T toElement)
ExtendedSetpublic ExtendedSet<T> subSet(T fromElement, T toElement)
ExtendedSetpublic ExtendedSet<T> tailSet(T fromElement)
ExtendedSetpublic ExtendedSet<T> unmodifiable()
ExtendedSetunmodifiable in interface ExtendedSet<T>unmodifiable in class AbstractExtendedSet.FilteredSetprotected ExtendedSet<T> raw()
raw in class AbstractExtendedSet.FilteredSetCopyright © 2016. All rights reserved.