DESY ACOP Beans Home

com.cosylab.util
Class PrimitiveDoubleList

java.lang.Object
  extended by com.cosylab.util.PrimitiveDoubleList

public class PrimitiveDoubleList
extends java.lang.Object

Version:
$id$ this is temporary version of a tool that performs some tasks with double[]; for the moment adding to array of fixed lenght and retrieving from such array is implemented.
Author:
Gasper Pajor

Field Summary
 double[] primaryArray
           
 
Constructor Summary
PrimitiveDoubleList(int initialSize, boolean grow)
          Constructor for PrimitiveDoubleList.
 
Method Summary
 void addElement(double el)
           
 double[] fillLatest(double[] arrayToFill)
           
 double get(int index)
           
 double[] getArray()
           
static void main(java.lang.String[] args)
          Run test applet.
 void removeOldest()
           
 void removeOldest(int i)
           
 void set(int index, double value)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

primaryArray

public double[] primaryArray
Constructor Detail

PrimitiveDoubleList

public PrimitiveDoubleList(int initialSize,
                           boolean grow)
Constructor for PrimitiveDoubleList.

Method Detail

size

public int size()

getArray

public double[] getArray()

addElement

public void addElement(double el)

removeOldest

public void removeOldest()

removeOldest

public void removeOldest(int i)

get

public double get(int index)

set

public void set(int index,
                double value)

fillLatest

public double[] fillLatest(double[] arrayToFill)

main

public static void main(java.lang.String[] args)
Run test applet.

Parameters:
args - command line parameters


Copyright © 2010. All Rights Reserved.