Class ContainerSerializerBase<T>

    • Constructor Detail

      • ContainerSerializerBase

        protected ContainerSerializerBase​(Class<T> t)
      • ContainerSerializerBase

        protected ContainerSerializerBase​(Class<?> t,
                                          boolean dummy)
        Alternate constructor that is (alas!) needed to work around kinks of generic type handling
        Parameters:
        t -
    • Method Detail

      • withValueTypeSerializer

        public ContainerSerializerBase<?> withValueTypeSerializer​(TypeSerializer vts)
        Factory(-like) method that can be used to construct a new container serializer that uses specified TypeSerializer for decorating contained values with additional type information.
        Parameters:
        vts - Type serializer to use for contained values; can be null, in which case 'this' serializer is returned as is
        Returns:
        Serializer instance that uses given type serializer for values if that is possible (or if not, just 'this' serializer)