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>comparatorprivate 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 booleanadd(E e)Eceiling(E e)java.util.Comparator<? super E>comparator()java.util.Iterator<E>descendingIterator()java.util.NavigableSet<E>descendingSet()Efirst()Efloor(E e)java.util.SortedSet<E>headSet(E toElement)java.util.NavigableSet<E>headSet(E toElement, boolean inclusive)Ehigher(E e)java.util.Iterator<E>iterator()Elast()Elower(E e)EpollFirst()EpollLast()intsize()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:
comparatorin 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:
descendingSetin interfacejava.util.NavigableSet<E>
-
descendingIterator
public java.util.Iterator<E> descendingIterator()
- Specified by:
descendingIteratorin interfacejava.util.NavigableSet<E>
-
subSet
public java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
- Specified by:
subSetin interfacejava.util.NavigableSet<E>
-
headSet
public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive)
- Specified by:
headSetin interfacejava.util.NavigableSet<E>
-
tailSet
public java.util.NavigableSet<E> tailSet(E fromElement, boolean inclusive)
- Specified by:
tailSetin interfacejava.util.NavigableSet<E>
-
-