Class Recycler.RecycleGuard<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    Recycler

    public static class Recycler.RecycleGuard<T>
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Helper class for try-with-resource statement.
    • Constructor Summary

      Constructors 
      Constructor Description
      RecycleGuard​(T obj)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecycleGuard

        public RecycleGuard​(T obj)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable