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 booleanadd(T obj)booleanaddAll(java.util.Collection<? extends T> arg0)voidclear()booleancontains(java.lang.Object arg0)booleancontains(T arg0)booleancontainsAll(java.util.Collection<?> arg0)Tget(int arg0)intindexOf(T arg0)booleanisEmpty()java.util.Iterator<T>iterator()intlastIndexOf(T arg0)java.util.ListIterator<T>listIterator()java.util.ListIterator<T>listIterator(int arg0)TpeekNext()Tremove(int arg0)booleanremove(java.lang.Object arg0)booleanremove(T arg0)booleanremoveAll(java.util.Collection<?> arg0)TremoveNext()booleanretainAll(java.util.Collection<?> arg0)Tset(int arg0, T arg1)intsize()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)
-
-