-
- All Implemented Interfaces:
-
ai.tock.nlp.entity.Value
public final class CustomValueWrapper implements Value
A jackson wrapper to store class name with dynamic type value. Usually, it is better to extend Value directly.
-
-
Constructor Summary
Constructors Constructor Description CustomValueWrapper(KClass<?> klass, Object value)CustomValueWrapper(Object value)CustomValueWrapper(String klass, Object value)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Objectcomponent2()final CustomValueWrappercopy(String klass, Object value)final StringgetKlass()final ObjectgetValue()-
-
Method Detail
-
component1
final String component1()
-
component2
final Object component2()
-
copy
final CustomValueWrapper copy(String klass, Object value)
-
-
-
-