Class ConstrainedValueWrapper

  • All Implemented Interfaces:

    
    public final class ConstrainedValueWrapper<T extends Object>
    
                        

    A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String klass
      private final T value
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getKlass()
      final T getValue()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConstrainedValueWrapper

        ConstrainedValueWrapper(KClass<?> klass, T value)
      • ConstrainedValueWrapper

        ConstrainedValueWrapper(T value)
      • ConstrainedValueWrapper

        ConstrainedValueWrapper(String klass, T value)