Interface ObjectValue

    • Method Detail

      • getValue

        <T> T getValue​(Class<T> type)
        Returns the object provided by this VariableValue. Allows type-safe access to objects by passing in the class.
        Parameters:
        type - the java class the value should be cast to
        Returns:
        the object represented by this TypedValue.
        Throws:
        IllegalStateException - in case the object is not deserialized. See isDeserialized().
      • getObjectType

        Class<?> getObjectType()
        Returns the Class this object is an instance of.
        Returns:
        the Class this object is an instance of
        Throws:
        IllegalStateException - in case the object is not deserialized. See isDeserialized().
      • getObjectTypeName

        String getObjectTypeName()
        A String representation of the Object's type name. Usually the canonical class name of the Java Class this object is an instance of.
        Returns:
        the Object's type name.