public class FastList<E> extends AbstractList<E> implements Externalizable
modCount| Constructor and Description |
|---|
FastList() |
FastList(E[] elements) |
FastList(int size) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public FastList(int size)
public FastList(E[] elements)
public FastList()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic E get(int index)
public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public boolean add(E o)
add in interface Collection<E>add in interface List<E>add in class AbstractList<E>public void add(int i,
E o)
public E remove(int i)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in class AbstractList<E>public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractList<E>public boolean addAll(int i,
Collection<? extends E> collection)
public Iterator iterator()
public ListIterator<E> listIterator()
listIterator in interface List<E>listIterator in class AbstractList<E>public ListIterator listIterator(int i)
listIterator in interface List<E>listIterator in class AbstractList<E>public List subList(int i, int i1)
public boolean equals(Object o)
equals in interface Collection<E>equals in interface List<E>equals in class AbstractList<E>public int hashCode()
hashCode in interface Collection<E>hashCode in interface List<E>hashCode in class AbstractList<E>protected void removeRange(int i,
int i1)
removeRange in class AbstractList<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty in class AbstractCollection<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>contains in class AbstractCollection<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public Object[] toArray(Object[] objects)
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>remove in class AbstractCollection<E>public boolean containsAll(Collection collection)
containsAll in interface Collection<E>containsAll in interface List<E>containsAll in class AbstractCollection<E>public boolean addAll(Collection collection)
addAll in interface Collection<E>addAll in interface List<E>addAll in class AbstractCollection<E>public boolean removeAll(Collection collection)
removeAll in interface Collection<E>removeAll in interface List<E>removeAll in class AbstractCollection<E>public boolean retainAll(Collection collection)
retainAll in interface Collection<E>retainAll in interface List<E>retainAll in class AbstractCollection<E>public String toString()
toString in class AbstractCollection<E>Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.