Package 

Class Serializer


  • 
    public abstract class Serializer<T extends Object>
    
                        

    A serializer for some type T. Each format will define its own abstract subclass that contains that format's read/write methods. If no TypeMirror is passed to the constructor, the resolved type parameter is used.

    Serializers only work on precisely the type they're created for. If serializers for a whole range of types are required, use a SerializerFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final TypeMirror type
    • Method Summary

      Modifier and Type Method Description
      final TypeMirror getType()
      • Methods inherited from class java.lang.Object

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

      • Serializer

        Serializer(TypeMirror type)
      • Serializer

        Serializer()
    • Method Detail

      • getType

         final TypeMirror getType()