Class ValueConst<T>

  • Type Parameters:
    T - Value type.
    All Implemented Interfaces:
    Value<T>

    public final class ValueConst<T>
    extends java.lang.Object
    implements Value<T>
    The ValueConst class holds a constant value of the specified type.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueConst​(T value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T value()  
      • Methods inherited from class java.lang.Object

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

      • ValueConst

        public ValueConst​(T value)
    • Method Detail

      • value

        public T value()
        Specified by:
        value in interface Value<T>