Class Recycler.RecycleGuard<T>

java.lang.Object
com.banuba.sdk.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

    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 Details

    • RecycleGuard

      public RecycleGuard​(T obj)
  • Method Details

    • close

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