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:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.NavigableSet<E>
,java.util.Set<E>
,java.util.SortedSet<E>
public final class FlatNavigableSet<E> extends java.util.AbstractSet<E> implements java.util.NavigableSet<E>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Comparator<? super E>
comparator
private java.util.List<E>
entries
-
Constructor Summary
Constructors Constructor Description FlatNavigableSet(java.util.Comparator<? super E> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E e)
E
ceiling(E e)
java.util.Comparator<? super E>
comparator()
java.util.Iterator<E>
descendingIterator()
java.util.NavigableSet<E>
descendingSet()
E
first()
E
floor(E e)
java.util.SortedSet<E>
headSet(E toElement)
java.util.NavigableSet<E>
headSet(E toElement, boolean inclusive)
E
higher(E e)
java.util.Iterator<E>
iterator()
E
last()
E
lower(E e)
E
pollFirst()
E
pollLast()
int
size()
java.util.NavigableSet<E>
subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
java.util.SortedSet<E>
subSet(E fromElement, E toElement)
java.util.SortedSet<E>
tailSet(E fromElement)
java.util.NavigableSet<E>
tailSet(E fromElement, boolean inclusive)
-
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
-
-
-
-
Constructor Detail
-
FlatNavigableSet
public FlatNavigableSet(java.util.Comparator<? super E> comparator)
-
-
Method Detail
-
comparator
public java.util.Comparator<? super E> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<E>
-
iterator
public java.util.Iterator<E> iterator()
-
size
public int size()
-
add
public boolean add(E e)
-
descendingSet
public java.util.NavigableSet<E> descendingSet()
- Specified by:
descendingSet
in interfacejava.util.NavigableSet<E>
-
descendingIterator
public java.util.Iterator<E> descendingIterator()
- Specified by:
descendingIterator
in interfacejava.util.NavigableSet<E>
-
subSet
public java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
- Specified by:
subSet
in interfacejava.util.NavigableSet<E>
-
headSet
public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive)
- Specified by:
headSet
in interfacejava.util.NavigableSet<E>
-
tailSet
public java.util.NavigableSet<E> tailSet(E fromElement, boolean inclusive)
- Specified by:
tailSet
in interfacejava.util.NavigableSet<E>
-
-