T
- The type of object stored in this IdentityListpublic class IdentityList<T>
extends java.lang.Object
implements java.util.List<T>
Constructor and Description |
---|
IdentityList()
Creates a new (empty) IdentityList.
|
IdentityList(java.util.List<T> list)
Createss a new IdentityList which will be initialized with the contents
of the given List.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T element) |
boolean |
addAll(java.util.Collection<? extends T> collection) |
boolean |
addAll(int index,
java.util.Collection<? extends T> collection) |
void |
clear() |
boolean |
contains(java.lang.Object element) |
boolean |
containsAll(java.util.Collection<?> collection) |
boolean |
equals(java.lang.Object obj) |
T |
get(int index) |
int |
hashCode() |
int |
indexOf(java.lang.Object element) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
int |
lastIndexOf(java.lang.Object element) |
java.util.ListIterator<T> |
listIterator() |
java.util.ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(java.lang.Object element) |
boolean |
removeAll(java.util.Collection<?> collection) |
boolean |
retainAll(java.util.Collection<?> collection) |
T |
set(int index,
T element) |
int |
size() |
java.util.List<T> |
subList(int startIndex,
int endIndex) |
java.lang.Object[] |
toArray() |
<V> V[] |
toArray(V[] newArray) |
public IdentityList()
public IdentityList(java.util.List<T> list)
list
- The list of objects used to initialize the contents of this
IdentityListpublic final boolean add(T element)
public final boolean addAll(java.util.Collection<? extends T> collection)
public boolean addAll(int index, java.util.Collection<? extends T> collection)
addAll
in interface java.util.List<T>
public void clear()
public boolean contains(java.lang.Object element)
public boolean containsAll(java.util.Collection<?> collection)
public boolean equals(java.lang.Object obj)
public int hashCode()
public int indexOf(java.lang.Object element)
indexOf
in interface java.util.List<T>
public boolean isEmpty()
public java.util.Iterator<T> iterator()
public int lastIndexOf(java.lang.Object element)
lastIndexOf
in interface java.util.List<T>
public java.util.ListIterator<T> listIterator()
listIterator
in interface java.util.List<T>
public java.util.ListIterator<T> listIterator(int index)
listIterator
in interface java.util.List<T>
public boolean remove(java.lang.Object element)
public boolean removeAll(java.util.Collection<?> collection)
public boolean retainAll(java.util.Collection<?> collection)
public int size()
public java.util.List<T> subList(int startIndex, int endIndex)
subList
in interface java.util.List<T>
public java.lang.Object[] toArray()