Class Values.EagerValue<T>

  • All Implemented Interfaces:
    Value<T>
    Enclosing class:
    Values

    private static class Values.EagerValue<T>
    extends java.lang.Object
    implements Value<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T result  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EagerValue​(Value<T> value)  
    • Method Summary

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

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

      • result

        private final T result
    • Constructor Detail

      • EagerValue

        private EagerValue​(Value<T> value)
    • Method Detail

      • get

        public T get()
        Description copied from interface: Value
        Get the stored value.
        Specified by:
        get in interface Value<T>
        Returns:
        stored value.