org.modeshape.common.collection

## Interface CloseableSupplier<T extends AutoCloseable>

- Type Parameters:
    `T` - the type of object to be supplied
  All Superinterfaces:
    AutoCloseable, Supplier<T>
  All Known Implementing Classes:
    RestartableSequence.QueueBufferSupplier

      public interface CloseableSupplier<T extends AutoCloseable>
      extends AutoCloseable, Supplier<T>

  A `Supplier` for `AutoCloseable` objects that itself can be closed without regard for whether the `Supplier.get()` method has not yet been called.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`

    - ### Methods inherited from interface org.modeshape.common.collection.Supplier

      `get`

- - ### Method Detail

    - #### close

          void close()

      Specified by:
        `close` in interface `AutoCloseable`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.