Class IntList
- java.lang.Object
-
- org.apache.commons.compress.harmony.pack200.IntList
-
public class IntList extends java.lang.Object
IntList is based onjava.util.ArrayList, but is written specifically for ints in order to reduce boxing and unboxing to Integers, reduce the memory required and improve performance of pack200.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(int object)Adds the specified object at the end of this IntList.voidadd(int location, int object)voidaddAll(IntList list)voidclear()intget(int location)voidincrement(int location)booleanisEmpty()intremove(int location)intsize()int[]toArray()
-
-
-
Method Detail
-
add
public boolean add(int object)
Adds the specified object at the end of this IntList.- Parameters:
object- the object to add- Returns:
- true
-
add
public void add(int location, int object)
-
clear
public void clear()
-
get
public int get(int location)
-
increment
public void increment(int location)
-
isEmpty
public boolean isEmpty()
-
remove
public int remove(int location)
-
size
public int size()
-
toArray
public int[] toArray()
-
-