Schnittstelle IObjectArray<T>

Typparameter:
T - the keyType of elements maintained by this Collection
Alle Superschnittstellen:
IArray, ITrimmable, RandomAccess
Alle bekannten Implementierungsklassen:
ObjectArrayList

public interface IObjectArray<T> extends IArray
Type-Specific Helper class to get the underlying array of array implementations.
Siehe auch:
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    T[]
    Provides the Underlying Array in the Implementation
    default void
    elements(Consumer<T[]> action)
    Provides the Underlying Array in the Implementation.
    boolean
    Method to indicate if the function is save to use

    Von Schnittstelle geerbte Methoden speiger.src.collections.utils.IArray

    ensureCapacity

    Von Schnittstelle geerbte Methoden speiger.src.collections.utils.ITrimmable

    clearAndTrim, clearAndTrim, trim, trim
  • Methodendetails

    • elements

      T[] elements()
      Provides the Underlying Array in the Implementation
      Gibt zurück:
      underlying Array
      Löst aus:
      ClassCastException - if the return type does not match the underlying array. (Only for Object Implementations)
    • isCastable

      boolean isCastable()
      Method to indicate if the function is save to use
      Gibt zurück:
      true if the object is castable to the type that is requested
    • elements

      default void elements(Consumer<T[]> action)
      Provides the Underlying Array in the Implementation. This function exists purely because of Synchronization wrappers to help run Synchronized Code
      Parameter:
      action - the action that handles the array
      Löst aus:
      NullPointerException - if action is null