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
| Methods inherited from interface java.util.Set |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
FlatNavigableSet
public FlatNavigableSet(Comparator<? super E> comparator)
comparator
public Comparator<? super E> comparator()
- Specified by:
comparator in interface SortedSet<E>
iterator
public Iterator<E> iterator()
- Specified by:
iterator in interface Iterable<E>- Specified by:
iterator in interface Collection<E>- Specified by:
iterator in interface NavigableSet<E>- Specified by:
iterator in interface Set<E>- Specified by:
iterator in class AbstractCollection<E>
size
public int size()
- Specified by:
size in interface Collection<E>- Specified by:
size in interface Set<E>- Specified by:
size in class AbstractCollection<E>
add
public boolean add(E e)
- Specified by:
add in interface Collection<E>- Specified by:
add in interface Set<E>- Overrides:
add in class AbstractCollection<E>
lower
public E lower(E e)
- Specified by:
lower in interface NavigableSet<E>
floor
public E floor(E e)
- Specified by:
floor in interface NavigableSet<E>
ceiling
public E ceiling(E e)
- Specified by:
ceiling in interface NavigableSet<E>
higher
public E higher(E e)
- Specified by:
higher in interface NavigableSet<E>
pollFirst
public E pollFirst()
- Specified by:
pollFirst in interface NavigableSet<E>
pollLast
public E pollLast()
- Specified by:
pollLast in interface NavigableSet<E>
descendingSet
public NavigableSet<E> descendingSet()
- Specified by:
descendingSet in interface NavigableSet<E>
descendingIterator
public Iterator<E> descendingIterator()
- Specified by:
descendingIterator in interface NavigableSet<E>
subSet
public NavigableSet<E> subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive)
- Specified by:
subSet in interface NavigableSet<E>
headSet
public NavigableSet<E> headSet(E toElement,
boolean inclusive)
- Specified by:
headSet in interface NavigableSet<E>
tailSet
public NavigableSet<E> tailSet(E fromElement,
boolean inclusive)
- Specified by:
tailSet in interface NavigableSet<E>
subSet
public SortedSet<E> subSet(E fromElement,
E toElement)
- Specified by:
subSet in interface NavigableSet<E>- Specified by:
subSet in interface SortedSet<E>
headSet
public SortedSet<E> headSet(E toElement)
- Specified by:
headSet in interface NavigableSet<E>- Specified by:
headSet in interface SortedSet<E>
tailSet
public SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSet in interface NavigableSet<E>- 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 © 2011 JBoss, a division of Red Hat, Inc.