Package lombok

Annotation Type Singular


  • @Target({FIELD,PARAMETER})
    @Retention(SOURCE)
    public @interface Singular
    The singular annotation is used together with @Builder to create single element 'add' methods in the builder for collections.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value
        Returns:
        The singular name of this field. If it's a normal english plural, lombok will figure it out automatically. Otherwise, this parameter is mandatory.
        Default:
        ""