Annotation Type Trim


  • @Retention(RUNTIME)
    @Target({PARAMETER,METHOD})
    @Inherited
    public @interface Trim
    Indicates that the field is suitable for String trimming. To use this annotate the method with Trim AND the fields intended for trimming. The field must be:
    • A mutable POJO with getters and setters
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean removeControlChars
      Flag to indicate the removal of control characters.
    • Element Detail

      • removeControlChars

        boolean removeControlChars
        Flag to indicate the removal of control characters.
        Default:
        false