T - the type of elements maintained by this Collectionpublic interface IObjectArray<T> extends IArray
ObjectArrayList| Modifier and Type | Method and Description |
|---|---|
T[] |
elements()
Provides the Underlying Array in the Implementation
|
default void |
elements(java.util.function.Consumer<T[]> action)
Provides the Underlying Array in the Implementation.
|
boolean |
isCastable()
Method to indicate if the function is save to use
|
ensureCapacityclearAndTrim, clearAndTrim, trim, trimT[] elements()
java.lang.ClassCastException - if the return type does not match the underlying array. (Only for Object Implementations)boolean isCastable()
default void elements(java.util.function.Consumer<T[]> action)
action - the action that handles the arrayjava.lang.NullPointerException - if action is null