Class Value<T>

  • All Implemented Interfaces:
    IValue<T>

    public class Value<T>
    extends java.lang.Object
    implements IValue<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      Value​(T object)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      static <T extends java.io.Serializable>
      Value<T>
      of​(T object)
      Factory method for Value which uses type inference to make code shorter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Value

        public Value​(T object)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface IValue<T>
      • of

        public static <T extends java.io.Serializable> Value<T> of​(T object)
        Factory method for Value which uses type inference to make code shorter. Equivalent to new Value<TypeOfObject>(object).
        Returns:
        Model that contains object