Class DefaultTypes


  • public class DefaultTypes
    extends Object
    Default type mappings.

    This class allows users to change how various ValueType enum values should be mapped to Java classes during deserialization.

    Author:
    Aleks Seovic 2018.06.05
    • Constructor Detail

      • DefaultTypes

        public DefaultTypes()
        Default constructor.
    • Method Detail

      • setClass

        public DefaultTypes setClass​(ValueType type,
                                     Class<?> clazz)
        Set the class to use for deserialization of the specified ValueType.
        Parameters:
        type - the ValueType to set the default class for
        clazz - the default class for the specified ValueType
        Returns:
        this instance
      • getClass

        public Class<?> getClass​(ValueType type)
        Get the class to use for deserialization of the specified ValueType.
        Parameters:
        type - the ValueType to get the default class for
        Returns:
        the default class for the specified ValueType