public interface ImSortedSet<E> extends ImSet<E>, UnmodSortedSet<E>
UnmodSet.AbstractUnmodSet<T>
UnmodIterable.AbstractUnmodIterable<T>
Modifier and Type | Method and Description |
---|---|
default ImSortedSet<E> |
headSet(E toElement) |
UnmodSortedIterator<E> |
iterator()
Iterates over contents in a guaranteed order.
|
ImSortedSet<E> |
put(E e)
Adds an element, returning a modified version of the set (leaving the original set unchanged).
|
ImSortedSet<E> |
subSet(E fromElement,
E toElement)
Return the elements in this set from the start element (inclusive) to the end element
(exclusive)
|
ImSortedSet<E> |
tailSet(E fromElement) |
default ImSortedSet<E> |
union(Iterable<? extends E> iter) |
ImSortedSet<E> |
without(E key)
Removes the given item, returning a modified version of the set (leaving the original set
unchanged).
|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, removeIf, retainAll, toArray, toArray
comparator, first, last, spliterator
parallelStream, stream
castFromList, castFromSortedMap, castFromSortedSet, equal, equals
concat, drop, filter, flatMap, foldLeft, foldLeft, hash, hashCode, head, map, precat, take, takeWhile, toString
toImList, toImMap, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableSet, toMutableSortedMap, toMutableSortedSet
ImSortedSet<E> put(E e)
ImSortedSet<E> without(E key)
default ImSortedSet<E> headSet(E toElement)
UnmodSortedIterator<E> iterator()
iterator
in interface Collection<E>
iterator
in interface Iterable<E>
iterator
in interface Set<E>
iterator
in interface UnmodCollection<E>
iterator
in interface UnmodIterable<E>
iterator
in interface UnmodSet<E>
iterator
in interface UnmodSortedCollection<E>
iterator
in interface UnmodSortedIterable<E>
iterator
in interface UnmodSortedSet<E>
ImSortedSet<E> subSet(E fromElement, E toElement)
ImSortedSet<E> tailSet(E fromElement)
Copyright © 2017. All rights reserved.