Class ListValue<T>

  • Type Parameters:
    T - the list entry type
    All Implemented Interfaces:
    Value<java.util.List<T>>

    public final class ListValue<T>
    extends java.lang.Object
    implements Value<java.util.List<T>>
    A list value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<? extends Value<? extends T>> values  
    • Constructor Summary

      Constructors 
      Constructor Description
      ListValue​(java.util.List<? extends Value<? extends T>> values)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<T> getValue()
      Get the actual value.
      • Methods inherited from class java.lang.Object

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

      • values

        private final java.util.List<? extends Value<? extends T>> values
    • Constructor Detail

      • ListValue

        public ListValue​(java.util.List<? extends Value<? extends T>> values)
        Construct a new instance.
        Parameters:
        values - the list of values with which to populate the list
    • Method Detail

      • getValue

        public java.util.List<T> getValue()
                                   throws java.lang.IllegalStateException
        Get the actual value.
        Specified by:
        getValue in interface Value<T>
        Returns:
        the actual value
        Throws:
        java.lang.IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.