Class PoolingSupport.Pooled<T>

java.lang.Object
io.github.jbellis.jvector.util.PoolingSupport.Pooled<T>
Type Parameters:
T -
All Implemented Interfaces:
AutoCloseable
Enclosing class:
PoolingSupport<T>

public static final class PoolingSupport.Pooled<T> extends Object implements AutoCloseable
Wrapper class for items in the pool These are AutoClosable and are intended to be used in a try-with-resources statement.
  • Method Details

    • get

      public T get()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable