Package jsl.utilities.misc
Class OrderedList<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- jsl.utilities.misc.OrderedList<T>
-
- Type Parameters:
T
- the type held in the list
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
public class OrderedList<T extends java.lang.Comparable<T>> extends java.lang.Object implements java.util.Collection<T>
This class encapsulates the a list that is ordered
-
-
Constructor Summary
Constructors Constructor Description OrderedList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T obj)
boolean
addAll(java.util.Collection<? extends T> arg0)
void
clear()
boolean
contains(java.lang.Object arg0)
boolean
contains(T arg0)
boolean
containsAll(java.util.Collection<?> arg0)
T
get(int arg0)
int
indexOf(T arg0)
boolean
isEmpty()
java.util.Iterator<T>
iterator()
int
lastIndexOf(T arg0)
java.util.ListIterator<T>
listIterator()
java.util.ListIterator<T>
listIterator(int arg0)
T
peekNext()
T
remove(int arg0)
boolean
remove(java.lang.Object arg0)
boolean
remove(T arg0)
boolean
removeAll(java.util.Collection<?> arg0)
T
removeNext()
boolean
retainAll(java.util.Collection<?> arg0)
T
set(int arg0, T arg1)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] arg0)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
add
public boolean add(T obj)
-
size
public int size()
-
peekNext
public T peekNext()
-
removeNext
public T removeNext()
-
remove
public T remove(int arg0)
-
remove
public boolean remove(T arg0)
-
listIterator
public java.util.ListIterator<T> listIterator(int arg0)
-
listIterator
public java.util.ListIterator<T> listIterator()
-
lastIndexOf
public int lastIndexOf(T arg0)
-
iterator
public java.util.Iterator<T> iterator()
-
isEmpty
public boolean isEmpty()
-
indexOf
public int indexOf(T arg0)
-
get
public T get(int arg0)
-
contains
public boolean contains(T arg0)
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object arg0)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] arg0)
-
remove
public boolean remove(java.lang.Object arg0)
-
containsAll
public boolean containsAll(java.util.Collection<?> arg0)
-
addAll
public boolean addAll(java.util.Collection<? extends T> arg0)
-
removeAll
public boolean removeAll(java.util.Collection<?> arg0)
-
-