Class SortedSetAdapter<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- com.github.andrewoma.dexx.collection.internal.adapter.SetAdapater<E>
-
- com.github.andrewoma.dexx.collection.internal.adapter.SortedSetAdapter<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
,java.util.SortedSet<E>
public class SortedSetAdapter<E> extends SetAdapater<E> implements java.util.SortedSet<E>
-
-
Constructor Summary
Constructors Constructor Description SortedSetAdapter(SortedSet<E> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.Comparator<? super E>
comparator()
E
first()
java.util.SortedSet<E>
headSet(E toElement)
E
last()
java.util.SortedSet<E>
subSet(E fromElement, E toElement)
java.util.SortedSet<E>
tailSet(E fromElement)
-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.adapter.SetAdapater
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
comparator
@NotNull public @NotNull java.util.Comparator<? super E> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<E>
-
subSet
@NotNull public java.util.SortedSet<E> subSet(E fromElement, E toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<E>
-
headSet
@NotNull public java.util.SortedSet<E> headSet(E toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<E>
-
tailSet
@NotNull public java.util.SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSet
in interfacejava.util.SortedSet<E>
-
-