Package org.mapstruct.ap.internal.util
Class Nouns
java.lang.Object
org.mapstruct.ap.internal.util.Nouns
Class taking care of Noun manipulation
- Author:
- Sjaak Derksen
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringsingularize(String plural) Converts given pluralized noun into the singular form.
-
Method Details
-
singularize
Converts given pluralized noun into the singular form. If no singular form could be determined, the given word itself is returned.- Parameters:
plural- plural word- Returns:
- singular form, if available
-