org.broad.igv.util.collections
Class FloatArrayList

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

public class FloatArrayList
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
FloatArrayList()
           
FloatArrayList(float[] elements)
           
FloatArrayList(int initialCapacity)
           
 
Method Summary
 void add(float e)
           
 void addAll(float[] args)
           
 void addAll(FloatArrayList aList)
           
 void clear()
          Empty all elements.
 float get(int idx)
           
 boolean isEmpty()
           
 int size()
           
 float[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatArrayList

public FloatArrayList()

FloatArrayList

public FloatArrayList(int initialCapacity)

FloatArrayList

public FloatArrayList(float[] elements)
Method Detail

add

public void add(float e)

addAll

public void addAll(float[] args)

addAll

public void addAll(FloatArrayList aList)

get

public float 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 float[] toArray()


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