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
    T get()
    If a value is present in this UpdateValue, returns the value, otherwise returns null (without throwing an exception.
    T getValue()  
    boolean isPresent()
    Return true if there is a value present, otherwise false.
    static <T extends java.io.Serializable>
    UpdateValue<T>
    of​(T value)
    Returns an UpdateValue with the specified present value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      public static <T extends java.io.Serializable> UpdateValue<T> of​(T value)
      Returns an UpdateValue with 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 UpdateValue with the value present
    • get

      public T get()
      If a value is present in this UpdateValue, returns the value, otherwise returns null (without throwing an exception.
      Returns:
      the value held by this UpdateValue
      See Also:
      isPresent()
    • isPresent

      public boolean isPresent()
      Return true if there is a value present, otherwise false.
      Returns:
      true if there is a value present, otherwise false
    • getValue

      public T getValue()