ObservableFloatArray is a float[] array that allows listeners
to track changes when they occur. In order to track changes, the internal
array is encapsulated and there is no direct access available from the outside.
Bulk operations are supported but they always do a copy of the data range.
ArrayChangeListener
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addAll(ObservableFloatArray
observable array with elements to append src)Appends content of a given observable array to the end of this array. |
| public void | addAll(float[]
source array src, int starting position in source array srcIndex, int length of portion to append length)Appends a portion of given array to the end of this array. |
| public void | addAll(ObservableFloatArray
source observable array src, int starting position in source array srcIndex, int length of portion to append length)Appends a portion of given observable array to the end of this array. |
| public void | copyTo(int
starting position in the observable array srcIndex, float[] destination array dest, int starting position in destination array destIndex, int length of portion to copy length)Copies specified portion of array into |
| public void | copyTo(int
starting position in the observable array srcIndex, ObservableFloatArray destination observable array dest, int starting position in destination observable array destIndex, int length of portion to copy length)Copies specified portion of array into |
| public float | |
| public void | set(int
the starting destination position in this observable array destIndex, float[] source array to copy src, int starting position in source array srcIndex, int length of portion to copy length)Copies a portion of specified array into this observable array. |
| public void | set(int
the starting destination position in this observable array destIndex, ObservableFloatArray source observable array to copy src, int starting position in source array srcIndex, int length of portion to copy length)Copies a portion of specified observable array into this observable array. |
| public void | set(int
index of the value to set index, float new value for the given index value)Sets a single value in the array. |
| public void | setAll(float...
elements to put into array content elements)Replaces this observable array content with given elements. |
| public void | setAll(float[]
source array to copy. src, int starting position in source observable array srcIndex, int length of a portion to copy length)Replaces this observable array content with a copy of portion of a given array. |
| public void | setAll(ObservableFloatArray
source observable array to copy. src)Replaces this observable array content with a copy of given observable array. |
| public void | setAll(ObservableFloatArray
source observable array to copy. src, int starting position in source observable array srcIndex, int length of a portion to copy length)Replaces this observable array content with a portion of a given observable array. |
| public float[] | Returns: a float array containing the copy of the observable arraythe array into which the observable array to be copied,
if it is big enough; otherwise, a new float array is allocated.
Ignored, if null. dest)Returns an array containing copy of the observable array. |
| public float[] | Returns: a float array containing the copy of specified portion the observable arraystarting position in the observable array srcIndex, float[] the array into which specified portion of the observable array
to be copied, if it is big enough;
otherwise, a new float array is allocated.
Ignored, if null. dest, int length of portion to copy length)Returns an array containing copy of specified portion of the observable array. |
| addAll | back to summary |
|---|---|
| public void addAll(float... elements) Appends given
| |
| addAll | back to summary |
|---|---|
| public void addAll(ObservableFloatArray src) Appends content of a given observable array to the end of this array. Capacity is increased if necessary to match the new size of the data.
| |
| addAll | back to summary |
|---|---|
| public void addAll(float[] src, int srcIndex, int length) Appends a portion of given array to the end of this array. Capacity is increased if necessary to match the new size of the data.
| |
| addAll | back to summary |
|---|---|
| public void addAll(ObservableFloatArray src, int srcIndex, int length) Appends a portion of given observable array to the end of this array. Capacity is increased if necessary to match the new size of the data.
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(int srcIndex, float[] dest, int destIndex, int length) Copies specified portion of array into
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(int srcIndex, ObservableFloatArray dest, int destIndex, int length) Copies specified portion of array into
| |
| get | back to summary |
|---|---|
| public float get(int index) Gets a single value of array. This is generally as fast as direct access to an array and eliminates necessity to make a copy of array.
| |
| set | back to summary |
|---|---|
| public void set(int destIndex, float[] src, int srcIndex, int length) Copies a portion of specified array into this observable array. Throws
the same exceptions as
| |
| set | back to summary |
|---|---|
| public void set(int destIndex, ObservableFloatArray src, int srcIndex, int length) Copies a portion of specified observable array into this observable array.
Throws the same exceptions as
| |
| set | back to summary |
|---|---|
| public void set(int index, float value) Sets a single value in the array. Avoid using this method if many values are updated, use set(int, float[], int, int) update method instead with as minimum number of invocations as possible.
| |
| setAll | back to summary |
|---|---|
| public void setAll(float... elements) Replaces this observable array content with given elements. Capacity is increased if necessary to match the new size of the data.
| |
| setAll | back to summary |
|---|---|
| public void setAll(float[] src, int srcIndex, int length) Replaces this observable array content with a copy of portion of a given array. Capacity is increased if necessary to match the new size of the data.
| |
| setAll | back to summary |
|---|---|
| public void setAll(ObservableFloatArray src) Replaces this observable array content with a copy of given observable array. Capacity is increased if necessary to match the new size of the data.
| |
| setAll | back to summary |
|---|---|
| public void setAll(ObservableFloatArray src, int srcIndex, int length) Replaces this observable array content with a portion of a given observable array. Capacity is increased if necessary to match the new size of the data.
| |
| toArray | back to summary |
|---|---|
| public float[] toArray(float[] dest) Returns an array containing copy of the observable array. If the observable array fits in the specified array, it is copied therein. Otherwise, a new array is allocated with the size of the observable array.
| |
| toArray | back to summary |
|---|---|
| public float[] toArray(int srcIndex, float[] dest, int length) Returns an array containing copy of specified portion of the observable array. If specified portion of the observable array fits in the specified array, it is copied therein. Otherwise, a new array of given length is allocated.
| |