Interface Recycler.C<T>

All Known Implementing Classes:
AbstractRecyclerC
Enclosing interface:
Recycler<T>

public static interface Recycler.C<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy(T value)
    Destroy the data.
    Create a new empty instance of the given size.
    void
    recycle(T value)
    Recycle the data.
  • Method Details

    • newInstance

      T newInstance()
      Create a new empty instance of the given size.
    • recycle

      void recycle(T value)
      Recycle the data. This operation is called when the data structure is released.
    • destroy

      void destroy(T value)
      Destroy the data. This operation allows the data structure to release any internal resources before GC.