Class AbstractTypedValue<T>
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue<T>
-
- All Implemented Interfaces:
java.io.Serializable
,TypedValue
- Direct Known Subclasses:
ObjectValueImpl
,PrimitiveTypeValueImpl
,SpinValueImpl
public class AbstractTypedValue<T> extends java.lang.Object implements TypedValue
- Author:
- Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isTransient
protected ValueType
type
protected T
value
-
Constructor Summary
Constructors Constructor Description AbstractTypedValue(T value, ValueType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueType
getType()
The type of the value.T
getValue()
The actual value.boolean
isTransient()
Indicator for transience of the valuevoid
setTransient(boolean isTransient)
java.lang.String
toString()
-
-
-
Method Detail
-
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 interfaceTypedValue
- 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 interfaceTypedValue
- Returns:
- the type of the value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isTransient
public boolean isTransient()
Description copied from interface:TypedValue
Indicator for transience of the value- Specified by:
isTransient
in interfaceTypedValue
- Returns:
- isTransient
-
setTransient
public void setTransient(boolean isTransient)
-
-