Annotation Interface CcSerializable


@Target(TYPE) @Retention(CLASS) public @interface CcSerializable
This annotation marks a class as a Ccerializable, it means that the annotated class can be serialized with Ccerial, and it will generate serializers for it.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The accessor type defines if the fields will be accessed through SETTER, FIELD, CONSTRUCTOR
    int
    An identifier for the class.
    boolean
    Include some headers if necessary
    boolean
    When serializing a null or empty become a zero.
    The fields described in this field will be used to serialize including their order. * for all and a comma separated list to define the fields.
    boolean
    The fields can be serialized as variable size.
  • Element Details

    • accessorType

      AccessorType accessorType
      The accessor type defines if the fields will be accessed through SETTER, FIELD, CONSTRUCTOR
      Default:
      CONSTRUCTOR
    • properties

      String properties
      The fields described in this field will be used to serialize including their order. * for all and a comma separated list to define the fields.
      Default:
      "*"
    • classIdentifier

      int classIdentifier
      An identifier for the class. Used for complex objects.
      Default:
      0
    • variableSize

      boolean variableSize
      The fields can be serialized as variable size.
      Default:
      true
    • nullIsZeroOrEmpty

      boolean nullIsZeroOrEmpty
      When serializing a null or empty become a zero.
      Default:
      true
    • includeHeader

      boolean includeHeader
      Include some headers if necessary
      Default:
      false