Interface Resource<X extends Exception>

Type Parameters:
X - an exception that can be thrown on closing the resource
All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
Resource.Iterable<T,X>, Resource.Iterator<E,X>
All Known Implementing Classes:
VectorFileIterators.ByteVectorFileIterator, VectorFileIterators.DoubleVectorFileIterator, VectorFileIterators.FloatVectorFileIterator, VectorFileIterators.IntVectorFileIterator, VectorFileIterators.LongVectorFileIterator, VectorFileIterators.ShortVectorFileIterator

public interface Resource<X extends Exception> extends AutoCloseable
Represents a resource which needs to be closed
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents an iterable that is also a resource
    static interface 
    Represents an iterator that is also a resource
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
  • Method Details