Package org.aksw.commons.util.ref
Interface ResourceHolder<T>
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ResourceHolderImpl
public interface ResourceHolder<T> extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()booleanisValid()A resource holder is valid as long as it was not closed.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
isValid
boolean isValid()
A resource holder is valid as long as it was not closed. Note, that the underlying resource may yet be closed.- Returns:
-
get
T get()
-
-