Class NamespaceTypeConfig

  • All Implemented Interfaces:
    Config

    public class NamespaceTypeConfig
    extends Object
    implements Config
    Namespace type configuration.
    • Constructor Detail

      • NamespaceTypeConfig

        public NamespaceTypeConfig()
    • Method Detail

      • getType

        public Class<?> getType()
        Returns the serializable type.
        Returns:
        the serializable type
      • setType

        public NamespaceTypeConfig setType​(Class<?> type)
        Sets the serializable type.
        Parameters:
        type - the serializable type
        Returns:
        the type configuration
      • getId

        public Integer getId()
        Returns the type identifier.
        Returns:
        the type identifier
      • setId

        public NamespaceTypeConfig setId​(Integer id)
        Sets the type identifier.
        Parameters:
        id - the type identifier
        Returns:
        the type configuration
      • getSerializer

        public Class<? extends com.esotericsoftware.kryo.Serializer> getSerializer()
        Returns the serializer class.
        Returns:
        the serializer class
      • setSerializer

        public NamespaceTypeConfig setSerializer​(Class<? extends com.esotericsoftware.kryo.Serializer> serializer)
        Sets the serializer class.
        Parameters:
        serializer - the serializer class
        Returns:
        the type configuration