org.broad.igv.util.collections
Class IntArrayList

java.lang.Object
  extended by org.broad.igv.util.collections.IntArrayList

public class IntArrayList
extends java.lang.Object

Author: jrobinso Date: Jul 22, 2010

ArrayList type collection for int types. Purpose is to avoid the need to create an object for each entry in the standard java collections.


Constructor Summary
IntArrayList()
           
IntArrayList(int initialCapacity)
           
IntArrayList(int[] elements)
           
 
Method Summary
 void add(int e)
           
 void addAll(int[] args)
           
 void addAll(IntArrayList aList)
           
 void clear()
          Empty all elements.
 int get(int idx)
           
 boolean isEmpty()
           
 int size()
           
 int[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntArrayList

public IntArrayList()

IntArrayList

public IntArrayList(int initialCapacity)

IntArrayList

public IntArrayList(int[] elements)
Method Detail

add

public void add(int e)

addAll

public void addAll(int[] args)

addAll

public void addAll(IntArrayList aList)

get

public int get(int idx)

size

public int size()

isEmpty

public boolean isEmpty()

clear

public void clear()
Empty all elements. This logically clears the collection but does not free up any space.


toArray

public int[] toArray()


Copyright © 2007-2011 - Thomas Abeel - All Rights Reserved. SourceForge.netLogo