JBoss Marshalling 1.3.18.GA

org.jboss.marshalling.util
Class FlatNavigableSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by 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
FlatNavigableSet(Comparator<? super E> comparator)
           
 
Method Summary
 boolean add(E e)
           
 E ceiling(E e)
           
 Comparator<? super E> comparator()
           
 Iterator<E> descendingIterator()
           
 NavigableSet<E> descendingSet()
           
 E first()
           
 E floor(E e)
           
 SortedSet<E> headSet(E toElement)
           
 NavigableSet<E> headSet(E toElement, boolean inclusive)
           
 E higher(E e)
           
 Iterator<E> iterator()
           
 E last()
           
 E lower(E e)
           
 E pollFirst()
           
 E pollLast()
           
 int size()
           
 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.Set
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

FlatNavigableSet

public FlatNavigableSet(Comparator<? super E> comparator)
Method Detail

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>

JBoss Marshalling 1.3.18.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.