Class NoneRecycler.NV<T>
- java.lang.Object
-
- org.elasticsearch.common.recycler.NoneRecycler.NV<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable,Recycler.V<T>
- Enclosing class:
- NoneRecycler<T>
public static class NoneRecycler.NV<T> extends Object implements Recycler.V<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisRecycled()Whether this instance has been recycled (true) or newly allocated (false).Tv()Reference to the value.
-
-
-
Method Detail
-
v
public T v()
Description copied from interface:Recycler.VReference to the value.- Specified by:
vin interfaceRecycler.V<T>
-
isRecycled
public boolean isRecycled()
Description copied from interface:Recycler.VWhether this instance has been recycled (true) or newly allocated (false).- Specified by:
isRecycledin interfaceRecycler.V<T>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
-