Class AbstractSortedSet<E>
- java.lang.Object
-
- com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable<E>
-
- com.github.andrewoma.dexx.collection.internal.base.AbstractIterable<E>
-
- com.github.andrewoma.dexx.collection.internal.base.AbstractSet<E>
-
- com.github.andrewoma.dexx.collection.internal.base.AbstractSortedSet<E>
-
- All Implemented Interfaces:
Iterable<E>
,Set<E>
,SortedSet<E>
,Traversable<E>
,java.lang.Iterable<E>
- Direct Known Subclasses:
TreeSet
public abstract class AbstractSortedSet<E> extends AbstractSet<E> implements SortedSet<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractSortedSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.SortedSet<E>
asSortedSet()
Returns an immutable view of this set as an instance ofjava.util.SortedSet
.@NotNull SortedSet<E>
from(E value, boolean inclusive)
Returns the bottom of the set starting from the key specified.@NotNull SortedSet<E>
to(E value, boolean inclusive)
Returns the top of the set up until the key specified.-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractSet
asSet, equals, hashCode
-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractIterable
forEach
-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.base.AbstractTraversable
isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.andrewoma.dexx.collection.SortedSet
add, comparator, drop, first, last, range, remove, take
-
Methods inherited from interface com.github.andrewoma.dexx.collection.Traversable
forEach, isEmpty, makeString, makeString, size, to, toArray, toArray, toIndexedList, toSet, toSortedSet
-
-
-
-
Method Detail
-
from
@NotNull public @NotNull SortedSet<E> from(@NotNull E value, boolean inclusive)
Description copied from interface:SortedSet
Returns the bottom of the set starting from the key specified.
-
to
@NotNull public @NotNull SortedSet<E> to(@NotNull E value, boolean inclusive)
Description copied from interface:SortedSet
Returns the top of the set up until the key specified.
-
asSortedSet
@NotNull public java.util.SortedSet<E> asSortedSet()
Description copied from interface:SortedSet
Returns an immutable view of this set as an instance ofjava.util.SortedSet
.- Specified by:
asSortedSet
in interfaceSortedSet<E>
-
-