public interface PropertyArrayDouble
PropertyAtomDouble.| Modifier and Type | Method and Description |
|---|---|
int |
add(double value)
Creates a
PropertyAtomDouble with the given double
and appends it to the array. |
void |
add(int index,
double value)
Creates a
PropertyAtomDouble with the given double
and inserts it into the array at the specified position. |
PropertyAtomDouble |
removePropertyAtom(double value)
Removes the first
PropertyAtomDouble with the given value
that is found in this array. |
void |
set(int index,
double value)
Sets the
PropertyAtomDouble at the given index to the given double. |
int add(double value)
PropertyAtomDouble with the given double
and appends it to the array.value - the double to add.void add(int index,
double value)
PropertyAtomDouble with the given double
and inserts it into the array at the specified position.
This method shifts the PropertyAtomDouble currently at
that position (if any) and any subsequent PropertyAtomDouble to the right
(i.e. adds one to their indices).index - the position at which to insert.value - the double to add.java.lang.IndexOutOfBoundsException - - if the index is less than zero or more than the size of the array.PropertyAtomDouble removePropertyAtom(double value)
PropertyAtomDouble with the given value
that is found in this array.
This method shifts all the subsequent array elements to the left
(i.e. substracts one to their indices).
It returns null if no matching value is found.value - the doubleto search for in the array.PropertyAtomDouble, or null if none matched.void set(int index,
double value)
PropertyAtomDouble at the given index to the given double.
If index == length, this method will call add(index, value) instead.index - the index at which the value is to be set.value - the double to set at the index.java.lang.IndexOutOfBoundsException - - if the index is less than zero or more than the current size of the array.