org.broad.igv.util.collections
Class DoubleArrayList

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

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

Constructor Detail

DoubleArrayList

public DoubleArrayList()

DoubleArrayList

public DoubleArrayList(int initialCapacity)

DoubleArrayList

public DoubleArrayList(double[] elements)
Method Detail

add

public void add(double e)

addAll

public void addAll(double[] args)

addAll

public void addAll(DoubleArrayList aList)

get

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


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