Interface Pool.Recycler<T>

Type Parameters:
T - The pooled and recycled type.
Enclosing class:
Pool<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Pool.Recycler<T>
A Recycler puts objects into the pool that the recycler is associated with.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    recycle(T object)
    Recycles the given object to the pool that this recycler works with.
  • Method Details

    • recycle

      void recycle(T object)
      Recycles the given object to the pool that this recycler works with.