Package org.jboss.marshalling.util
Class FlatNavigableSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- org.jboss.marshalling.util.FlatNavigableSet<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,NavigableSet<E>,Set<E>,SortedSet<E>
public final class FlatNavigableSet<E> extends AbstractSet<E> implements NavigableSet<E>
- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description FlatNavigableSet(Comparator<? super E> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)Eceiling(E e)Comparator<? super E>comparator()Iterator<E>descendingIterator()NavigableSet<E>descendingSet()Efirst()Efloor(E e)SortedSet<E>headSet(E toElement)NavigableSet<E>headSet(E toElement, boolean inclusive)Ehigher(E e)Iterator<E>iterator()Elast()Elower(E e)EpollFirst()EpollLast()intsize()NavigableSet<E>subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)SortedSet<E>subSet(E fromElement, E toElement)SortedSet<E>tailSet(E fromElement)NavigableSet<E>tailSet(E fromElement, boolean inclusive)-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
spliterator
-
-
-
-
Constructor Detail
-
FlatNavigableSet
public FlatNavigableSet(Comparator<? super E> comparator)
-
-
Method Detail
-
comparator
public Comparator<? super E> comparator()
- Specified by:
comparatorin interfaceSortedSet<E>
-
iterator
public Iterator<E> iterator()
- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin interfaceNavigableSet<E>- Specified by:
iteratorin interfaceSet<E>- Specified by:
iteratorin classAbstractCollection<E>
-
size
public int size()
- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-
add
public boolean add(E e)
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceSet<E>- Overrides:
addin classAbstractCollection<E>
-
lower
public E lower(E e)
- Specified by:
lowerin interfaceNavigableSet<E>
-
floor
public E floor(E e)
- Specified by:
floorin interfaceNavigableSet<E>
-
ceiling
public E ceiling(E e)
- Specified by:
ceilingin interfaceNavigableSet<E>
-
higher
public E higher(E e)
- Specified by:
higherin interfaceNavigableSet<E>
-
pollFirst
public E pollFirst()
- Specified by:
pollFirstin interfaceNavigableSet<E>
-
pollLast
public E pollLast()
- Specified by:
pollLastin interfaceNavigableSet<E>
-
descendingSet
public NavigableSet<E> descendingSet()
- Specified by:
descendingSetin interfaceNavigableSet<E>
-
descendingIterator
public Iterator<E> descendingIterator()
- Specified by:
descendingIteratorin interfaceNavigableSet<E>
-
subSet
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
- Specified by:
subSetin interfaceNavigableSet<E>
-
headSet
public NavigableSet<E> headSet(E toElement, boolean inclusive)
- Specified by:
headSetin interfaceNavigableSet<E>
-
tailSet
public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
- Specified by:
tailSetin interfaceNavigableSet<E>
-
-