Package zombie.util.list
Class AbstractIntList
java.lang.Object
zombie.util.AbstractIntCollection
zombie.util.list.AbstractIntList
- All Implemented Interfaces:
IntCollection
,IntList
- Direct Known Subclasses:
IntArrayList
public abstract class AbstractIntList extends AbstractIntCollection implements IntList
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractIntList()
-
Method Summary
Modifier and Type Method Description boolean
add(int v)
void
add(int index, int v)
boolean
addAll(int index, IntCollection c)
boolean
equals(java.lang.Object obj)
int
hashCode()
int
indexOf(int c)
int
indexOf(int index, int c)
IntIterator
iterator()
int
lastIndexOf(int c)
int
lastIndexOf(int index, int c)
IntListIterator
listIterator()
IntListIterator
listIterator(int index)
int
removeElementAt(int index)
Methods inherited from class zombie.util.AbstractIntCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString, trimToSize
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface zombie.util.IntCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, trimToSize
-
Constructor Details
-
AbstractIntList
protected AbstractIntList()
-
-
Method Details
-
add
public boolean add(int v)- Specified by:
add
in interfaceIntCollection
- Overrides:
add
in classAbstractIntCollection
-
add
public void add(int index, int v) -
addAll
-
indexOf
public int indexOf(int c) -
indexOf
public int indexOf(int index, int c) -
iterator
- Specified by:
iterator
in interfaceIntCollection
-
lastIndexOf
public int lastIndexOf(int c)- Specified by:
lastIndexOf
in interfaceIntList
-
lastIndexOf
public int lastIndexOf(int index, int c)- Specified by:
lastIndexOf
in interfaceIntList
-
listIterator
- Specified by:
listIterator
in interfaceIntList
-
listIterator
- Specified by:
listIterator
in interfaceIntList
-
removeElementAt
public int removeElementAt(int index)- Specified by:
removeElementAt
in interfaceIntList
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equals
in interfaceIntCollection
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceIntCollection
- Overrides:
hashCode
in classjava.lang.Object
-