Interface Recycler<T>

Type Parameters:
T - a type of object to be recycled

public interface Recycler<T>
A generic interface that describes how an item should be recycled
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    recycle(T item)
    Recycles an item
  • Method Details

    • recycle

      void recycle(T item)
      Recycles an item

      Frees some resource that this item possesses, e.g. returns an item to the pool, etc.

      Parameters:
      item - an item to be recycled