org.ujmp.core.collections
Class SortedListSet<A>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<A>
          extended by org.ujmp.core.collections.SortedListSet<A>
All Implemented Interfaces:
Serializable, Iterable<A>, Collection<A>, List<A>, Set<A>, SortedSet<A>

public class SortedListSet<A>
extends AbstractList<A>
implements SortedSet<A>, List<A>, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SortedListSet()
           
 
Method Summary
 boolean add(A e)
           
 void add(int index, A element)
           
 boolean addAll(Collection<? extends A> c)
           
 boolean addAll(int index, Collection<? extends A> c)
           
 void clear()
           
 Comparator<? super A> comparator()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 A first()
           
 A get(int index)
           
 SortedSet<A> headSet(A toElement)
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<A> iterator()
           
 A last()
           
 int lastIndexOf(Object o)
           
 ListIterator<A> listIterator()
           
 ListIterator<A> listIterator(int index)
           
 A remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 A set(int index, A element)
           
 int size()
           
 List<A> subList(int fromIndex, int toIndex)
           
 SortedSet<A> subSet(A fromElement, A toElement)
           
 SortedSet<A> tailSet(A fromElement)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.util.AbstractList
equals, hashCode, removeRange
 
Methods inherited from class java.util.AbstractCollection
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

SortedListSet

public SortedListSet()
Method Detail

comparator

public Comparator<? super A> comparator()
Specified by:
comparator in interface SortedSet<A>

first

public A first()
Specified by:
first in interface SortedSet<A>

headSet

public SortedSet<A> headSet(A toElement)
Specified by:
headSet in interface SortedSet<A>

last

public A last()
Specified by:
last in interface SortedSet<A>

subSet

public SortedSet<A> subSet(A fromElement,
                           A toElement)
Specified by:
subSet in interface SortedSet<A>

tailSet

public SortedSet<A> tailSet(A fromElement)
Specified by:
tailSet in interface SortedSet<A>

add

public boolean add(A e)
Specified by:
add in interface Collection<A>
Specified by:
add in interface List<A>
Specified by:
add in interface Set<A>
Overrides:
add in class AbstractList<A>

addAll

public boolean addAll(Collection<? extends A> c)
Specified by:
addAll in interface Collection<A>
Specified by:
addAll in interface List<A>
Specified by:
addAll in interface Set<A>
Overrides:
addAll in class AbstractCollection<A>

clear

public void clear()
Specified by:
clear in interface Collection<A>
Specified by:
clear in interface List<A>
Specified by:
clear in interface Set<A>
Overrides:
clear in class AbstractList<A>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<A>
Specified by:
contains in interface List<A>
Specified by:
contains in interface Set<A>
Overrides:
contains in class AbstractCollection<A>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<A>
Specified by:
containsAll in interface List<A>
Specified by:
containsAll in interface Set<A>
Overrides:
containsAll in class AbstractCollection<A>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<A>
Specified by:
isEmpty in interface List<A>
Specified by:
isEmpty in interface Set<A>
Overrides:
isEmpty in class AbstractCollection<A>

iterator

public Iterator<A> iterator()
Specified by:
iterator in interface Iterable<A>
Specified by:
iterator in interface Collection<A>
Specified by:
iterator in interface List<A>
Specified by:
iterator in interface Set<A>
Overrides:
iterator in class AbstractList<A>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<A>
Specified by:
remove in interface List<A>
Specified by:
remove in interface Set<A>
Overrides:
remove in class AbstractCollection<A>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<A>
Specified by:
removeAll in interface List<A>
Specified by:
removeAll in interface Set<A>
Overrides:
removeAll in class AbstractCollection<A>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<A>
Specified by:
retainAll in interface List<A>
Specified by:
retainAll in interface Set<A>
Overrides:
retainAll in class AbstractCollection<A>

size

public int size()
Specified by:
size in interface Collection<A>
Specified by:
size in interface List<A>
Specified by:
size in interface Set<A>
Specified by:
size in class AbstractCollection<A>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<A>
Specified by:
toArray in interface List<A>
Specified by:
toArray in interface Set<A>
Overrides:
toArray in class AbstractCollection<A>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<A>
Specified by:
toArray in interface List<A>
Specified by:
toArray in interface Set<A>
Overrides:
toArray in class AbstractCollection<A>

add

public void add(int index,
                A element)
Specified by:
add in interface List<A>
Overrides:
add in class AbstractList<A>

addAll

public boolean addAll(int index,
                      Collection<? extends A> c)
Specified by:
addAll in interface List<A>
Overrides:
addAll in class AbstractList<A>

get

public A get(int index)
Specified by:
get in interface List<A>
Specified by:
get in class AbstractList<A>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<A>
Overrides:
indexOf in class AbstractList<A>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<A>
Overrides:
lastIndexOf in class AbstractList<A>

listIterator

public ListIterator<A> listIterator()
Specified by:
listIterator in interface List<A>
Overrides:
listIterator in class AbstractList<A>

listIterator

public ListIterator<A> listIterator(int index)
Specified by:
listIterator in interface List<A>
Overrides:
listIterator in class AbstractList<A>

remove

public A remove(int index)
Specified by:
remove in interface List<A>
Overrides:
remove in class AbstractList<A>

set

public A set(int index,
             A element)
Specified by:
set in interface List<A>
Overrides:
set in class AbstractList<A>

subList

public List<A> subList(int fromIndex,
                       int toIndex)
Specified by:
subList in interface List<A>
Overrides:
subList in class AbstractList<A>


Copyright © 2010. All Rights Reserved.