Annotation Interface CcArray


@Target({FIELD,METHOD,RECORD_COMPONENT}) @Retention(CLASS) public @interface CcArray
Override the default behavior for arrays, collections or strings
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Define a fixed size for an array, collection or string
    boolean
     
    boolean
    Serialize a string as an array of chars.
    Change the charset for strings
  • Element Details

    • count

      int count
      Define a fixed size for an array, collection or string
      Default:
      -1
    • nullIsEmpty

      boolean nullIsEmpty
      Default:
      true
    • stringCharsetName

      String stringCharsetName
      Change the charset for strings
      Default:
      "UTF-8"
    • stringAsCharArray

      boolean stringAsCharArray
      Serialize a string as an array of chars. The difference is that it will use wide char instead of a defined charset.
      Default:
      false