|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.almendra.commons.util.collection.SortedList
public class SortedList
Field Summary | |
---|---|
protected java.util.Comparator |
comparator
|
protected java.util.List |
sortedList
|
Constructor Summary | |
---|---|
SortedList()
Creates a new SortedList object. |
|
SortedList(java.util.Collection c)
Creates a new SortedList object. |
|
SortedList(java.util.Collection c,
java.util.Comparator comparator)
Creates a new SortedList object. |
|
SortedList(java.util.Comparator comparator)
Creates a new SortedList object. |
|
SortedList(SortedList l)
Creates a new SortedList object. |
|
SortedList(SortedList l,
java.util.Comparator comparator)
Creates a new SortedList object. |
Method Summary | |
---|---|
boolean |
add(java.lang.Comparable c)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(SortedList l)
|
void |
clear()
|
java.util.Comparator |
comparator()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
first()
|
java.lang.Object |
get(int index)
|
int |
hashCode()
|
SortedList |
headSet(java.lang.Object toElement)
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
java.lang.Object |
last()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
SortedList |
subSet(java.lang.Object fromElement,
java.lang.Object toElement)
|
SortedList |
tailSet(java.lang.Object fromElement)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
addAll, containsAll, removeAll, retainAll, toArray |
Field Detail |
---|
protected java.util.List sortedList
protected java.util.Comparator comparator
Constructor Detail |
---|
public SortedList()
SortedList
object.
public SortedList(java.util.Comparator comparator)
SortedList
object.
public SortedList(java.util.Collection c)
SortedList
object.
public SortedList(SortedList l)
SortedList
object.
public SortedList(SortedList l, java.util.Comparator comparator)
SortedList
object.
public SortedList(java.util.Collection c, java.util.Comparator comparator)
SortedList
object.
Method Detail |
---|
public boolean add(java.lang.Comparable c)
add
in interface java.util.Collection
o
-
public boolean addAll(SortedList l)
c
-
public void clear()
clear
in interface java.util.Collection
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
o
-
public boolean containsAll(java.util.Collection c)
c
-
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection
equals
in class java.lang.Object
public java.lang.Object get(int index)
index
-
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in class java.lang.Object
public int indexOf(java.lang.Object o)
o
-
public boolean isEmpty()
isEmpty
in interface java.util.Collection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public int lastIndexOf(java.lang.Object o)
o
-
public java.util.ListIterator listIterator()
public java.util.ListIterator listIterator(int index)
index
-
public java.lang.Object remove(int index)
index
-
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
o
-
public boolean removeAll(java.util.Collection c)
c
-
public boolean retainAll(java.util.Collection c)
c
-
public int size()
size
in interface java.util.Collection
public java.util.List subList(int fromIndex, int toIndex)
fromIndex
- toIndex
-
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public java.lang.Object[] toArray(java.lang.Object[] a)
a
-
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object first() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.lang.Object last() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.util.Comparator comparator()
public SortedList headSet(java.lang.Object toElement) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public SortedList tailSet(java.lang.Object fromElement)
public SortedList subSet(java.lang.Object fromElement, java.lang.Object toElement)
public boolean addAll(java.util.Collection c)
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |