Module javafx.base

Interface ObservableArray<T extends ObservableArray<T>>

Type Parameters:
T - actual array instance type
All Superinterfaces:
Observable
All Known Subinterfaces:
ObservableFaceArray, ObservableFloatArray, ObservableIntegerArray
All Known Implementing Classes:
ObservableArrayBase

public interface ObservableArray<T extends ObservableArray<T>> extends Observable
ObservableArray is an 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. You can find them in subclasses as they deal with primitive arrays directly.

Implementations have both capacity, which is internal array length, and size. If size needs to be increased beyond capacity, the capacity increases to match that new size. Use trimToSize() method to shrink it.

Since:
JavaFX 8.0
See Also: