Class ClassOfValue<T>

  • All Implemented Interfaces:
    Value<java.lang.Class<? extends T>>

    public final class ClassOfValue<T>
    extends java.lang.Object
    implements Value<java.lang.Class<? extends T>>
    A value which returns the Class object of another value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Value<? extends T> value  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassOfValue​(Value<? extends T> value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends 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

      • value

        private final Value<? extends T> value
    • Constructor Detail

      • ClassOfValue

        public ClassOfValue​(Value<? extends T> value)
    • Method Detail

      • getValue

        public java.lang.Class<? extends T> getValue()
                                              throws java.lang.IllegalStateException
        Description copied from interface: Value
        Get the actual value.
        Specified by:
        getValue in interface Value<T>
        Returns:
        the Class of the value, or null if value.getValue() is null.
        Throws:
        java.lang.IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.