Package org.apache.flink.util
Class Reference<T>
- java.lang.Object
-
- org.apache.flink.util.Reference<T>
-
- Type Parameters:
T
- type of the value
public final class Reference<T> extends Object
Wrapper class that allows to express whether the value is borrowed or owned.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V> Reference<V>
borrowed(V value)
T
deref()
boolean
isOwned()
Optional<T>
owned()
Returns the value if it is owned.static <V> Reference<V>
owned(V value)
String
toString()
-