org.camunda.bpm.engine.impl.core.variable.value
Class AbstractTypedValue<T>

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

public class AbstractTypedValue<T>
extends Object
implements TypedValue

Author:
Daniel Meyer
See Also:
Serialized Form

Field Summary
protected  ValueType type
           
protected  T value
           
 
Constructor Summary
AbstractTypedValue(T value, ValueType type)
           
 
Method Summary
 ValueType getType()
          The type of the value.
 T getValue()
          The actual value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected T value

type

protected ValueType type
Constructor Detail

AbstractTypedValue

public AbstractTypedValue(T value,
                          ValueType type)
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 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


Copyright © 2015 camunda services GmbH. All rights reserved.