ariba.util.core
Class DoubleArray

java.lang.Object
  extended by ariba.util.core.DynamicArray
      extended by ariba.util.core.DoubleArray

public class DoubleArray
extends DynamicArray

A DynamicArray of Doubles

See Also:
DynamicArray

Field Summary
static double[] EMPTY_DOUBLE_ARRAY
          An empty immutable double array.
 
Fields inherited from class ariba.util.core.DynamicArray
array, inUse
 
Constructor Summary
DoubleArray(int initialSize)
           
 
Method Summary
 void add(double d)
           
 java.lang.Object[] alloc(int size)
          Allocate the storage array.
 java.lang.Double[] array()
          Typesafe access to the storage array
 void setArray(java.lang.Double[] array)
           
 double[] toPrimitiveArray()
          Converts the object array to it's primitive equivalent, treating nulls as zeroes.
 
Methods inherited from class ariba.util.core.DynamicArray
add, add, addAll, addAll, addAll, addElement, addElementIfAbsent, addElements, addElements, addElementsIfAbsent, addIdentical, arrayCopy, clear, contains, containsIdentical, extend, indexOf, insertElementAt, inUse, makeRoomFor, remove, removeElementAt, setArray, setCapacity, toList, toString, trim
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_DOUBLE_ARRAY

public static final double[] EMPTY_DOUBLE_ARRAY
An empty immutable double array.

Constructor Detail

DoubleArray

public DoubleArray(int initialSize)
Method Detail

alloc

public java.lang.Object[] alloc(int size)
Description copied from class: DynamicArray
Allocate the storage array. Subclasses should override this, allocating an array of the correct type.

Specified by:
alloc in class DynamicArray
Parameters:
size - The size of the array to allocate
Returns:
The allocated array

array

public final java.lang.Double[] array()
Typesafe access to the storage array

Returns:
the Double[] array currently in use by this object. It is not copied.

toPrimitiveArray

public final double[] toPrimitiveArray()
Converts the object array to it's primitive equivalent, treating nulls as zeroes.


add

public void add(double d)

setArray

public void setArray(java.lang.Double[] array)


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.