Interface GenericArray<T>

All Superinterfaces:
Collection<T>, GenericContainer, Iterable<T>, List<T>
All Known Implementing Classes:
GenericData.AbstractArray, GenericData.Array, PrimitivesArrays.BooleanArray, PrimitivesArrays.DoubleArray, PrimitivesArrays.FloatArray, PrimitivesArrays.IntArray, PrimitivesArrays.LongArray

public interface GenericArray<T> extends List<T>, GenericContainer
Array that permits reuse of contained elements.
  • Method Details

    • peek

      T peek()
      The current content of the location where List.add(Object) would next store an element, if any. This permits reuse of arrays and their elements without allocating new objects.
    • reset

      default void reset()
      reset size counter of array to zero
    • prune

      default void prune()
      clean up reusable objects from array (if reset didn't already)
    • reverse

      void reverse()
      Reverses the order of the elements in this array.