Class Commons
java.lang.Object
io.github.joselion.springr2dbcrelationships.helpers.Commons
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(String value) Capitalizes the first character of the provided string.static <T> TConvenience method to cast with a generic type.static StringtoCamelCase(String value) Transforms a string to camel-case format.static StringtoSnakeCase(String value) Transforms a string to snake-case format.static Stringuncapitalize(String value) Uncapitalizes the first character of the provided string.
-
Method Details
-
cast
Convenience method to cast with a generic type.- Type Parameters:
T- the type to cast the target to- Parameters:
target- the target to cast- Returns:
- a value cast to the generic type
-
capitalize
-
uncapitalize
-
toSnakeCase
-
toCamelCase
-