| Modifier and Type | Field and Description |
|---|---|
| private float[] | |
| private static final float[] | |
| private static final int | MAX_ARRAY_SIZE
The maximum size of array to allocate. |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ObservableFloatArrayImpl(float...
initial values to copy to observable float array elements)Creates observable float array with copy of given initial values |
| public | ObservableFloatArrayImpl(ObservableFloatArray
observable float array to copy src)Creates observable float array with copy of given observable float array |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAll(ObservableFloatArray src)
Implements javafx. Appends content of a given observable array to the end of this array. |
| public void | addAll(float... elements)
Implements javafx. Appends given |
| public void | addAll(ObservableFloatArray src, int srcIndex, int length)
Implements javafx. Appends a portion of given observable array to the end of this array. |
| public void | addAll(float[] src, int srcIndex, int length)
Implements javafx. Appends a portion of given array to the end of this array. |
| private void | |
| private void | |
| public void | |
| public void | copyTo(int srcIndex, float[] dest, int destIndex, int length)
Implements javafx. Copies specified portion of array into |
| public void | copyTo(int srcIndex, ObservableFloatArray dest, int destIndex, int length)
Implements javafx. Copies specified portion of array into |
| public void | ensureCapacity(int capacity)
Implements javafx. Grows the capacity of this array if the current capacity is less than
given |
| public float | |
| private void | |
| private static int | |
| private void | |
| private void | |
| private void | |
| public void | resize(int newSize)
Implements javafx. Sets new length of data in this array. |
| public void | set(int destIndex, float[] src, int srcIndex, int length)
Implements javafx. Copies a portion of specified array into this observable array. |
| public void | set(int destIndex, ObservableFloatArray src, int srcIndex, int length)
Implements javafx. Copies a portion of specified observable array into this observable array. |
| public void | set(int index, float value)
Implements javafx. Sets a single value in the array. |
| public void | setAll(ObservableFloatArray src)
Implements javafx. Replaces this observable array content with a copy of given observable array. |
| public void | setAll(ObservableFloatArray src, int srcIndex, int length)
Implements javafx. Replaces this observable array content with a portion of a given observable array. |
| public void | setAll(float[] src, int srcIndex, int length)
Implements javafx. Replaces this observable array content with a copy of portion of a given array. |
| public void | setAll(float... src)
Implements javafx. Replaces this observable array content with given elements. |
| private void | |
| private void | |
| public int | |
| public float[] | toArray(float[] dest)
Implements javafx. Returns an array containing copy of the observable array. |
| public float[] | toArray(int index, float[] dest, int length)
Implements javafx. Returns an array containing copy of specified portion of the observable array. |
| public String | |
| public void | trimToSize()
Implements javafx. Shrinks the capacity to the current size of data in the array. |
| array | back to summary |
|---|---|
| private float[] array | |
| INITIAL | back to summary |
|---|---|
| private static final float[] INITIAL | |
| MAX_ARRAY_SIZE | back to summary |
|---|---|
| private static final int MAX_ARRAY_SIZE The maximum size of array to allocate. Some VMs reserve some header words in an array. Attempts to allocate larger arrays may result in OutOfMemoryError: Requested array size exceeds VM limit | |
| size | back to summary |
|---|---|
| private int size | |
| ObservableFloatArrayImpl | back to summary |
|---|---|
| public ObservableFloatArrayImpl() Creates empty observable float array | |
| ObservableFloatArrayImpl | back to summary |
|---|---|
| public ObservableFloatArrayImpl(float... elements) Creates observable float array with copy of given initial values
| |
| ObservableFloatArrayImpl | back to summary |
|---|---|
| public ObservableFloatArrayImpl(ObservableFloatArray src) Creates observable float array with copy of given observable float array
| |
| addAll | back to summary |
|---|---|
| public void addAll(ObservableFloatArray src) Implements javafx. Doc from javafx. 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... elements) Implements javafx. Doc from javafx. Appends given
| |
| addAll | back to summary |
|---|---|
| public void addAll(ObservableFloatArray src, int srcIndex, int length) Implements javafx. Doc from javafx. 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.
| |
| addAll | back to summary |
|---|---|
| public void addAll(float[] src, int srcIndex, int length) Implements javafx. Doc from javafx. 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.
| |
| addAllInternal | back to summary |
|---|---|
| private void addAllInternal(ObservableFloatArray src, int srcIndex, int length) | |
| addAllInternal | back to summary |
|---|---|
| private void addAllInternal(float[] src, int srcIndex, int length) | |
| clear | back to summary |
|---|---|
| public void clear() Implements javafx. Doc from javafx. Empties the array by resizing it to 0. Capacity is not changed.
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(int srcIndex, float[] dest, int destIndex, int length) Implements javafx. Doc from javafx. Copies specified portion of array into
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(int srcIndex, ObservableFloatArray dest, int destIndex, int length) Implements javafx. Doc from javafx. Copies specified portion of array into
| |
| ensureCapacity | back to summary |
|---|---|
| public void ensureCapacity(int capacity) Implements javafx. Doc from javafx. Grows the capacity of this array if the current capacity is less than
given
| |
| get | back to summary |
|---|---|
| public float get(int index) Implements javafx. Doc from javafx. 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.
| |
| growCapacity | back to summary |
|---|---|
| private void growCapacity(int length) | |
| hugeCapacity | back to summary |
|---|---|
| private static int hugeCapacity(int minCapacity) | |
| rangeCheck | back to summary |
|---|---|
| private void rangeCheck(int size) | |
| rangeCheck | back to summary |
|---|---|
| private void rangeCheck(ObservableFloatArray src, int srcIndex, int length) | |
| rangeCheck | back to summary |
|---|---|
| private void rangeCheck(float[] src, int srcIndex, int length) | |
| resize | back to summary |
|---|---|
| public void resize(int newSize) Implements javafx. Doc from javafx. Sets new length of data in this array. This method grows capacity if necessary but never shrinks it. Resulting array will contain existing data for indexes that are less than the current size and zeroes for indexes that are greater than the current size.
| |
| set | back to summary |
|---|---|
| public void set(int destIndex, float[] src, int srcIndex, int length) Implements javafx. Doc from javafx. 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) Implements javafx. Doc from javafx. 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) Implements javafx. Doc from javafx. 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(ObservableFloatArray src) Implements javafx. Doc from javafx. 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) Implements javafx. Doc from javafx. 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.
| |
| setAll | back to summary |
|---|---|
| public void setAll(float[] src, int srcIndex, int length) Implements javafx. Doc from javafx. 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(float... src) Implements javafx. Doc from javafx. Replaces this observable array content with given elements. Capacity is increased if necessary to match the new size of the data.
| |
| setAllInternal | back to summary |
|---|---|
| private void setAllInternal(ObservableFloatArray src, int srcIndex, int length) | |
| setAllInternal | back to summary |
|---|---|
| private void setAllInternal(float[] src, int srcIndex, int length) | |
| size | back to summary |
|---|---|
| public int size() Implements javafx. Doc from javafx. Retrieves length of data in this array.
| |
| toArray | back to summary |
|---|---|
| public float[] toArray(float[] dest) Implements javafx. Doc from javafx. 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 index, float[] dest, int length) Implements javafx. Doc from javafx. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| trimToSize | back to summary |
|---|---|
| public void trimToSize() Implements javafx. Doc from javafx. Shrinks the capacity to the current size of data in the array.
| |