org.mvel2.util
Class FastList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by org.mvel2.util.FastList<E>
All Implemented Interfaces:
Externalizable, Serializable, Iterable<E>, Collection<E>, List<E>

public class FastList<E>
extends AbstractList<E>
implements Externalizable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FastList()
           
FastList(E[] elements)
           
FastList(int size)
           
 
Method Summary
 boolean add(E o)
           
 void add(int i, E o)
           
 boolean addAll(Collection collection)
           
 boolean addAll(int i, Collection<? extends E> collection)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection collection)
           
 boolean equals(Object o)
           
 E get(int index)
           
 int hashCode()
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<E> listIterator()
           
 ListIterator listIterator(int i)
           
 void readExternal(ObjectInput in)
           
 E remove(int i)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection collection)
           
protected  void removeRange(int i, int i1)
           
 boolean retainAll(Collection collection)
           
 E set(int i, E o)
           
 int size()
           
 List subList(int i, int i1)
           
 Object[] toArray()
           
 Object[] toArray(Object[] objects)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastList

public FastList(int size)

FastList

public FastList(E[] elements)

FastList

public FastList()
Method Detail

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

get

public E get(int index)
Specified by:
get in interface List<E>
Specified by:
get in class AbstractList<E>

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in interface List<E>
Specified by:
size in class AbstractCollection<E>

add

public boolean add(E o)
Specified by:
add in interface Collection<E>
Specified by:
add in interface List<E>
Overrides:
add in class AbstractList<E>

set

public E set(int i,
             E o)
Specified by:
set in interface List<E>
Overrides:
set in class AbstractList<E>

add

public void add(int i,
                E o)
Specified by:
add in interface List<E>
Overrides:
add in class AbstractList<E>

remove

public E remove(int i)
Specified by:
remove in interface List<E>
Overrides:
remove in class AbstractList<E>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<E>
Overrides:
indexOf in class AbstractList<E>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<E>
Overrides:
lastIndexOf in class AbstractList<E>

clear

public void clear()
Specified by:
clear in interface Collection<E>
Specified by:
clear in interface List<E>
Overrides:
clear in class AbstractList<E>

addAll

public boolean addAll(int i,
                      Collection<? extends E> collection)
Specified by:
addAll in interface List<E>
Overrides:
addAll in class AbstractList<E>

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in interface List<E>
Overrides:
iterator in class AbstractList<E>

listIterator

public ListIterator<E> listIterator()
Specified by:
listIterator in interface List<E>
Overrides:
listIterator in class AbstractList<E>

listIterator

public ListIterator listIterator(int i)
Specified by:
listIterator in interface List<E>
Overrides:
listIterator in class AbstractList<E>

subList

public List subList(int i,
                    int i1)
Specified by:
subList in interface List<E>
Overrides:
subList in class AbstractList<E>

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<E>
Specified by:
equals in interface List<E>
Overrides:
equals in class AbstractList<E>

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<E>
Specified by:
hashCode in interface List<E>
Overrides:
hashCode in class AbstractList<E>

removeRange

protected void removeRange(int i,
                           int i1)
Overrides:
removeRange in class AbstractList<E>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<E>
Specified by:
isEmpty in interface List<E>
Overrides:
isEmpty in class AbstractCollection<E>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<E>
Specified by:
contains in interface List<E>
Overrides:
contains in class AbstractCollection<E>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface List<E>
Overrides:
toArray in class AbstractCollection<E>

toArray

public Object[] toArray(Object[] objects)
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface List<E>
Overrides:
toArray in class AbstractCollection<E>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<E>
Specified by:
remove in interface List<E>
Overrides:
remove in class AbstractCollection<E>

containsAll

public boolean containsAll(Collection collection)
Specified by:
containsAll in interface Collection<E>
Specified by:
containsAll in interface List<E>
Overrides:
containsAll in class AbstractCollection<E>

addAll

public boolean addAll(Collection collection)
Specified by:
addAll in interface Collection<E>
Specified by:
addAll in interface List<E>
Overrides:
addAll in class AbstractCollection<E>

removeAll

public boolean removeAll(Collection collection)
Specified by:
removeAll in interface Collection<E>
Specified by:
removeAll in interface List<E>
Overrides:
removeAll in class AbstractCollection<E>

retainAll

public boolean retainAll(Collection collection)
Specified by:
retainAll in interface Collection<E>
Specified by:
retainAll in interface List<E>
Overrides:
retainAll in class AbstractCollection<E>

toString

public String toString()
Overrides:
toString in class AbstractCollection<E>


Copyright © 2011. All Rights Reserved.