com.planet_ink.coffee_mud.core.collections
Class CMList<K>

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.collections.CMList<K>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.Deque<K>, java.util.List<K>, java.util.Queue<K>
Direct Known Subclasses:
PairCMList, TriadCMList

public class CMList<K>
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.Deque<K>, java.util.List<K>, java.util.Queue<K>

See Also:
Serialized Form

Constructor Summary
CMList()
           
CMList(java.util.Enumeration<K> E)
           
CMList(java.util.Iterator<K> E)
           
CMList(java.util.Set<K> E)
           
 
Method Summary
 void add(int arg0, K arg1)
           
 boolean add(K arg0)
           
 boolean addAll(java.util.Collection<? extends K> arg0)
           
 void addAll(java.util.Enumeration<K> E)
           
 boolean addAll(int arg0, java.util.Collection<? extends K> arg1)
           
 void addAll(java.util.Iterator<K> E)
           
 void addAll(K[] E)
           
 void addFirst(K arg0)
           
 void addLast(K arg0)
           
 void clear()
           
 boolean contains(java.lang.Object arg0)
           
 boolean containsAll(java.util.Collection<?> c)
           
 boolean containsFromEnd(java.lang.Object arg0)
           
 CMList<K> copyOf()
           
 java.util.Iterator<K> descendingIterator()
           
 K element()
           
 java.util.Enumeration<K> elements()
           
 boolean equals(java.lang.Object arg0)
           
 K get(int arg0)
           
 K getFirst()
           
 K getLast()
           
 K getNextRandom()
           
 K getPreviousRandom()
           
 int hashCode()
           
 int indexOf(java.lang.Object arg0)
           
 boolean isEmpty()
           
 java.util.Iterator<K> iterator()
           
 int lastIndexOf(java.lang.Object arg0)
           
 java.util.ListIterator<K> listIterator()
           
 java.util.ListIterator<K> listIterator(int arg0)
           
 boolean offer(K arg0)
           
 boolean offerFirst(K arg0)
           
 boolean offerLast(K arg0)
           
 K peek()
           
 K peekFirst()
           
 K peekLast()
           
 K poll()
           
 K pollFirst()
           
 K pollLast()
           
 K pop()
           
 void push(K arg0)
           
 K remove()
           
 K remove(int arg0)
           
 boolean remove(java.lang.Object arg0)
           
 boolean removeAll(java.util.Collection<?> c)
           
 void removeAll(java.util.Enumeration<K> E)
           
 void removeAll(java.util.Iterator<K> E)
           
 void removeAll(java.util.List<K> E)
           
 K removeFirst()
           
 boolean removeFirstOccurrence(java.lang.Object arg0)
           
 K removeLast()
           
 boolean removeLastOccurrence(java.lang.Object arg0)
           
 boolean retainAll(java.util.Collection<?> c)
           
 K set(int arg0, K arg1)
           
 int size()
           
 java.util.List<K> subList(int arg0, int arg1)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] arg0)
           
 java.util.LinkedList<K> toLinkedList()
           
 java.lang.String toString()
           
 java.util.Vector<K> toVector()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMList

public CMList()

CMList

public CMList(java.util.Enumeration<K> E)

CMList

public CMList(java.util.Iterator<K> E)

CMList

public CMList(java.util.Set<K> E)
Method Detail

addAll

public void addAll(java.util.Enumeration<K> E)

addAll

public void addAll(K[] E)

addAll

public void addAll(java.util.Iterator<K> E)

removeAll

public void removeAll(java.util.Enumeration<K> E)

removeAll

public void removeAll(java.util.Iterator<K> E)

removeAll

public void removeAll(java.util.List<K> E)

toLinkedList

public java.util.LinkedList<K> toLinkedList()

toVector

public java.util.Vector<K> toVector()

add

public void add(int arg0,
                K arg1)
Specified by:
add in interface java.util.List<K>

add

public boolean add(K arg0)
Specified by:
add in interface java.util.Collection<K>
Specified by:
add in interface java.util.Deque<K>
Specified by:
add in interface java.util.List<K>
Specified by:
add in interface java.util.Queue<K>

addAll

public boolean addAll(java.util.Collection<? extends K> arg0)
Specified by:
addAll in interface java.util.Collection<K>
Specified by:
addAll in interface java.util.List<K>

addAll

public boolean addAll(int arg0,
                      java.util.Collection<? extends K> arg1)
Specified by:
addAll in interface java.util.List<K>

addFirst

public void addFirst(K arg0)
Specified by:
addFirst in interface java.util.Deque<K>

addLast

public void addLast(K arg0)
Specified by:
addLast in interface java.util.Deque<K>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<K>
Specified by:
clear in interface java.util.List<K>

getNextRandom

public K getNextRandom()

getPreviousRandom

public K getPreviousRandom()

copyOf

public CMList<K> copyOf()

contains

public boolean contains(java.lang.Object arg0)
Specified by:
contains in interface java.util.Collection<K>
Specified by:
contains in interface java.util.Deque<K>
Specified by:
contains in interface java.util.List<K>

containsFromEnd

public boolean containsFromEnd(java.lang.Object arg0)

elements

public java.util.Enumeration<K> elements()

descendingIterator

public java.util.Iterator<K> descendingIterator()
Specified by:
descendingIterator in interface java.util.Deque<K>

element

public K element()
Specified by:
element in interface java.util.Deque<K>
Specified by:
element in interface java.util.Queue<K>

get

public K get(int arg0)
Specified by:
get in interface java.util.List<K>

getFirst

public K getFirst()
Specified by:
getFirst in interface java.util.Deque<K>

getLast

public K getLast()
Specified by:
getLast in interface java.util.Deque<K>

indexOf

public int indexOf(java.lang.Object arg0)
Specified by:
indexOf in interface java.util.List<K>

lastIndexOf

public int lastIndexOf(java.lang.Object arg0)
Specified by:
lastIndexOf in interface java.util.List<K>

listIterator

public java.util.ListIterator<K> listIterator(int arg0)
Specified by:
listIterator in interface java.util.List<K>

offer

public boolean offer(K arg0)
Specified by:
offer in interface java.util.Deque<K>
Specified by:
offer in interface java.util.Queue<K>

offerFirst

public boolean offerFirst(K arg0)
Specified by:
offerFirst in interface java.util.Deque<K>

offerLast

public boolean offerLast(K arg0)
Specified by:
offerLast in interface java.util.Deque<K>

peek

public K peek()
Specified by:
peek in interface java.util.Deque<K>
Specified by:
peek in interface java.util.Queue<K>

peekFirst

public K peekFirst()
Specified by:
peekFirst in interface java.util.Deque<K>

peekLast

public K peekLast()
Specified by:
peekLast in interface java.util.Deque<K>

poll

public K poll()
Specified by:
poll in interface java.util.Deque<K>
Specified by:
poll in interface java.util.Queue<K>

pollFirst

public K pollFirst()
Specified by:
pollFirst in interface java.util.Deque<K>

pollLast

public K pollLast()
Specified by:
pollLast in interface java.util.Deque<K>

pop

public K pop()
Specified by:
pop in interface java.util.Deque<K>

push

public void push(K arg0)
Specified by:
push in interface java.util.Deque<K>

remove

public K remove()
Specified by:
remove in interface java.util.Deque<K>
Specified by:
remove in interface java.util.Queue<K>

remove

public K remove(int arg0)
Specified by:
remove in interface java.util.List<K>

remove

public boolean remove(java.lang.Object arg0)
Specified by:
remove in interface java.util.Collection<K>
Specified by:
remove in interface java.util.Deque<K>
Specified by:
remove in interface java.util.List<K>

removeFirst

public K removeFirst()
Specified by:
removeFirst in interface java.util.Deque<K>

removeFirstOccurrence

public boolean removeFirstOccurrence(java.lang.Object arg0)
Specified by:
removeFirstOccurrence in interface java.util.Deque<K>

removeLast

public K removeLast()
Specified by:
removeLast in interface java.util.Deque<K>

removeLastOccurrence

public boolean removeLastOccurrence(java.lang.Object arg0)
Specified by:
removeLastOccurrence in interface java.util.Deque<K>

set

public K set(int arg0,
             K arg1)
Specified by:
set in interface java.util.List<K>

size

public int size()
Specified by:
size in interface java.util.Collection<K>
Specified by:
size in interface java.util.Deque<K>
Specified by:
size in interface java.util.List<K>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<K>
Specified by:
toArray in interface java.util.List<K>

toArray

public <T> T[] toArray(T[] arg0)
Specified by:
toArray in interface java.util.Collection<K>
Specified by:
toArray in interface java.util.List<K>

iterator

public java.util.Iterator<K> iterator()
Specified by:
iterator in interface java.lang.Iterable<K>
Specified by:
iterator in interface java.util.Collection<K>
Specified by:
iterator in interface java.util.Deque<K>
Specified by:
iterator in interface java.util.List<K>

equals

public boolean equals(java.lang.Object arg0)
Specified by:
equals in interface java.util.Collection<K>
Specified by:
equals in interface java.util.List<K>
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<K>
Specified by:
hashCode in interface java.util.List<K>
Overrides:
hashCode in class java.lang.Object

listIterator

public java.util.ListIterator<K> listIterator()
Specified by:
listIterator in interface java.util.List<K>

subList

public java.util.List<K> subList(int arg0,
                                 int arg1)
Specified by:
subList in interface java.util.List<K>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<K>
Specified by:
containsAll in interface java.util.List<K>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<K>
Specified by:
isEmpty in interface java.util.List<K>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<K>
Specified by:
removeAll in interface java.util.List<K>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<K>
Specified by:
retainAll in interface java.util.List<K>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object