-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe optional value specified here will determine the singular form of the method name. For instance, if we take a method like this:
an additional generated method named@Singlular("pickle") List<Pickle> getPickles();addPickle(Pickle val)will be placed on the builder of the generated class.This annotation only applies to getter methods that return a Map, List, or Set. If left undefined then the add method will used the default method name, dropping any "s" that might be present at the end of the method name (e.g., pickles -> pickle).
- Returns:
- The singular name to add
- Default:
""
-