Package zombie.util.list
Class IntArrayList
java.lang.Object
zombie.util.AbstractIntCollection
zombie.util.list.AbstractIntList
zombie.util.list.IntArrayList
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- IntCollection,- IntList
public class IntArrayList extends AbstractIntList implements java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_CAPACITYstatic intDEFAULT_GROWTH_CHUNKstatic doubleDEFAULT_GROWTH_FACTOR
- 
Constructor SummaryConstructors Constructor Description IntArrayList()IntArrayList(int capacity)IntArrayList(int[] a)IntArrayList(int capacity, double growthFactor)IntArrayList(int capacity, int growthChunk)IntArrayList(IntCollection c)
- 
Method SummaryModifier and Type Method Description voidadd(int index, int v)intcapacity()voidclear()java.lang.Objectclone()booleancontains(int v)intensureCapacity(int capacity)booleanequals(java.lang.Object obj)intget(int index)inthashCode()intindexOf(int c)intindexOf(int index, int c)booleanisEmpty()intlastIndexOf(int c)booleanremove(int v)intremoveElementAt(int index)intset(int index, int v)intsize()int[]toArray()int[]toArray(int[] a)voidtrimToSize()Methods inherited from class zombie.util.list.AbstractIntListadd, addAll, iterator, lastIndexOf, listIterator, listIteratorMethods inherited from class zombie.util.AbstractIntCollectionaddAll, containsAll, removeAll, retainAll, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface zombie.util.IntCollectionaddAll, containsAll, removeAll, retainAll
- 
Field Details- 
DEFAULT_GROWTH_FACTORpublic static final double DEFAULT_GROWTH_FACTOR- See Also:
- Constant Field Values
 
- 
DEFAULT_GROWTH_CHUNKpublic static final int DEFAULT_GROWTH_CHUNK- See Also:
- Constant Field Values
 
- 
DEFAULT_CAPACITYpublic static final int DEFAULT_CAPACITY- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
IntArrayListpublic IntArrayList()
- 
IntArrayList
- 
IntArrayListpublic IntArrayList(int[] a)
- 
IntArrayListpublic IntArrayList(int capacity)
- 
IntArrayListpublic IntArrayList(int capacity, double growthFactor)
- 
IntArrayListpublic IntArrayList(int capacity, int growthChunk)
 
- 
- 
Method Details- 
ensureCapacitypublic int ensureCapacity(int capacity)
- 
capacitypublic int capacity()
- 
addpublic void add(int index, int v)- Specified by:
- addin interface- IntList
- Overrides:
- addin class- AbstractIntList
 
- 
getpublic int get(int index)
- 
setpublic int set(int index, int v)
- 
removeElementAtpublic int removeElementAt(int index)- Specified by:
- removeElementAtin interface- IntList
- Overrides:
- removeElementAtin class- AbstractIntList
 
- 
trimToSizepublic void trimToSize()- Specified by:
- trimToSizein interface- IntCollection
- Overrides:
- trimToSizein class- AbstractIntCollection
 
- 
clonepublic java.lang.Object clone()- Overrides:
- clonein class- java.lang.Object
 
- 
sizepublic int size()- Specified by:
- sizein interface- IntCollection
- Overrides:
- sizein class- AbstractIntCollection
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- IntCollection
- Overrides:
- isEmptyin class- AbstractIntCollection
 
- 
clearpublic void clear()- Specified by:
- clearin interface- IntCollection
- Overrides:
- clearin class- AbstractIntCollection
 
- 
containspublic boolean contains(int v)- Specified by:
- containsin interface- IntCollection
- Overrides:
- containsin class- AbstractIntCollection
 
- 
indexOfpublic int indexOf(int c)- Specified by:
- indexOfin interface- IntList
- Overrides:
- indexOfin class- AbstractIntList
 
- 
indexOfpublic int indexOf(int index, int c)- Specified by:
- indexOfin interface- IntList
- Overrides:
- indexOfin class- AbstractIntList
 
- 
lastIndexOfpublic int lastIndexOf(int c)- Specified by:
- lastIndexOfin interface- IntList
- Overrides:
- lastIndexOfin class- AbstractIntList
 
- 
removepublic boolean remove(int v)- Specified by:
- removein interface- IntCollection
- Overrides:
- removein class- AbstractIntCollection
 
- 
toArraypublic int[] toArray()- Specified by:
- toArrayin interface- IntCollection
- Overrides:
- toArrayin class- AbstractIntCollection
 
- 
toArraypublic int[] toArray(int[] a)- Specified by:
- toArrayin interface- IntCollection
- Overrides:
- toArrayin class- AbstractIntCollection
 
- 
equalspublic boolean equals(java.lang.Object obj)- Specified by:
- equalsin interface- IntCollection
- Overrides:
- equalsin class- AbstractIntList
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- IntCollection
- Overrides:
- hashCodein class- AbstractIntList
 
 
-