public interface PropertyArrayLong
PropertyAtomLong.| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
long value)
Creates a
PropertyAtomLong with the given long
and inserts it into the array at the specified position. |
int |
add(long value)
Creates a
PropertyAtomLong with the given long
and appends it to the array. |
PropertyAtomLong |
removePropertyAtom(long value)
Removes the first
PropertyAtomLong with the given value
that is found in this array. |
void |
set(int index,
long value)
Sets the
PropertyAtomLong at the given index to the given long. |
int add(long value)
PropertyAtomLong with the given long
and appends it to the array.value - the long to add.void add(int index,
long value)
PropertyAtomLong with the given long
and inserts it into the array at the specified position.
This method shifts the PropertyAtomLong currently at
that position (if any) and any subsequent PropertyAtomLong to the right
(i.e. adds one to their indices).index - the position at which to insert.value - the long to add.java.lang.IndexOutOfBoundsException - - if the index is less than zero or more than the size of the array.PropertyAtomLong removePropertyAtom(long value)
PropertyAtomLong 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 longto search for in the array.PropertyAtomLong, or null if none matched.void set(int index,
long value)
PropertyAtomLong at the given index to the given long.
If index == length, this method will call add(index, value) instead.index - the index at which the value is to be set.value - the long to set at the index.java.lang.IndexOutOfBoundsException - - if the index is less than zero or more than the current size of the array.