com.github.andrewoma.dexx.collection.internal.adapter
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:
- Iterable<E>, Collection<E>, Set<E>, SortedSet<E>
public class SortedSetAdapter<E>
- extends SetAdapater<E>
- implements SortedSet<E>
| 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 interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
SortedSetAdapter
public SortedSetAdapter(SortedSet<E> set)
comparator
@NotNull
public Comparator<? super E> comparator()
- Specified by:
comparator in interface SortedSet<E>
subSet
@NotNull
public SortedSet<E> subSet(E fromElement,
E toElement)
- Specified by:
subSet in interface SortedSet<E>
headSet
@NotNull
public SortedSet<E> headSet(E toElement)
- Specified by:
headSet in interface SortedSet<E>
tailSet
@NotNull
public SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSet in interface SortedSet<E>
first
public E first()
- Specified by:
first in interface SortedSet<E>
last
public E last()
- Specified by:
last in interface SortedSet<E>
Copyright © 2014. All Rights Reserved.