Package io.github.jonestimd.collection
Class IdentityArrayList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- io.github.jonestimd.collection.IdentityArrayList<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
,java.util.RandomAccess
public class IdentityArrayList<T> extends java.util.ArrayList<T>
A list that uses identity equality forList.indexOf(Object)
andList.lastIndexOf(Object)
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentityArrayList()
IdentityArrayList(int initialCapacity)
IdentityArrayList(java.util.Collection<? extends T> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
indexOf(java.lang.Object o)
int
lastIndexOf(java.lang.Object o)
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Constructor Detail
-
IdentityArrayList
public IdentityArrayList()
-
IdentityArrayList
public IdentityArrayList(java.util.Collection<? extends T> c)
-
IdentityArrayList
public IdentityArrayList(int initialCapacity)
-
-