xxl.collections
Class ReverseList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--xxl.collections.ReverseList

public class ReverseList
extends java.util.AbstractList


Field Summary
static Function FACTORY_METHOD
          A factory method to create a default ReverseList.
protected  java.util.List list
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ReverseList()
           
ReverseList(java.util.Iterator iterator)
           
ReverseList(java.util.List list)
           
 
Method Summary
 void add(int index, java.lang.Object object)
           
 java.lang.Object get(int index)
           
 java.lang.Object remove(int index)
           
 java.lang.Object set(int index, java.lang.Object object)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FACTORY_METHOD

public static final Function FACTORY_METHOD
A factory method to create a default ReverseList. Each implementation of ReverseList should have a field FACTORY_METHOD which is a factory method that implements three variants of invoke()

list

protected java.util.List list
Constructor Detail

ReverseList

public ReverseList()

ReverseList

public ReverseList(java.util.List list)

ReverseList

public ReverseList(java.util.Iterator iterator)
Method Detail

size

public int size()
Overrides:
size in class java.util.AbstractCollection

get

public java.lang.Object get(int index)
Overrides:
get in class java.util.AbstractList

set

public java.lang.Object set(int index,
                            java.lang.Object object)
Overrides:
set in class java.util.AbstractList

add

public void add(int index,
                java.lang.Object object)
Overrides:
add in class java.util.AbstractList

remove

public java.lang.Object remove(int index)
Overrides:
remove in class java.util.AbstractList