Class AbstractTypedValue<T>

java.lang.Object
org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue<T>
All Implemented Interfaces:
Serializable, TypedValue
Direct Known Subclasses:
ObjectValueImpl, PrimitiveTypeValueImpl, SpinValueImpl

public class AbstractTypedValue<T> extends Object implements TypedValue
Author:
Daniel Meyer
See Also:
  • Field Details

    • value

      protected T value
    • type

      protected ValueType type
    • isTransient

      protected boolean isTransient
  • Constructor Details

    • AbstractTypedValue

      public AbstractTypedValue(T value, ValueType type)
  • Method Details

    • getValue

      public T getValue()
      Description copied from interface: TypedValue
      The actual value. May be null in case the value is null.
      Specified by:
      getValue in interface TypedValue
      Returns:
      the value
    • getType

      public ValueType getType()
      Description copied from interface: TypedValue
      The type of the value. See ValueType for a list of built-in ValueTypes.
      Specified by:
      getType in interface TypedValue
      Returns:
      the type of the value.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isTransient

      public boolean isTransient()
      Description copied from interface: TypedValue
      Indicator for transience of the value
      Specified by:
      isTransient in interface TypedValue
      Returns:
      isTransient
    • setTransient

      public void setTransient(boolean isTransient)