Class UpdateValue<T extends java.io.Serializable>
java.lang.Object
ru.i_novus.ms.rdm.api.model.version.UpdateValue<T>
- All Implemented Interfaces:
java.io.Serializable
public class UpdateValue<T extends java.io.Serializable>
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description Tget()If a value is present in thisUpdateValue, returns the value, otherwise returns null (without throwing an exception.TgetValue()booleanisPresent()Returntrueif there is a value present, otherwisefalse.static <T extends java.io.Serializable>
UpdateValue<T>of(T value)Returns anUpdateValuewith the specified present value.
-
Method Details
-
of
Returns anUpdateValuewith the specified present value.- Type Parameters:
T- the class of the value- Parameters:
value- the value to be present, which must be non-null- Returns:
- an
UpdateValuewith the value present
-
get
If a value is present in thisUpdateValue, returns the value, otherwise returns null (without throwing an exception.- Returns:
- the value held by this
UpdateValue - See Also:
isPresent()
-
isPresent
public boolean isPresent()Returntrueif there is a value present, otherwisefalse.- Returns:
trueif there is a value present, otherwisefalse
-
getValue
-