Object StringTransformations
-
- All Implemented Interfaces:
public class StringTransformations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classStringTransformations.CHAINpublic classStringTransformations.NOOPpublic final classStringTransformations.WRAPpublic classStringTransformations.TO_UPPER_SNAKE_CASEConverts a string to UpperSnakeCase, which is a common naming convention for static constants in programming.
Example:
fooBarHelloWorldbecomesFOO_BAR_HELLO_WORLD.public classStringTransformations.TO_UPPER_CAMEL_CASEConverts a string to UpperCamelCase, which is a common naming convention for TypeNames in programming.
Example:
foo_bar_hello_worldbecomesFooBarHelloWorld.public classStringTransformations.TO_LOWER_CAMEL_CASEpublic classStringTransformations.WITHOUT_SPACES_TO_LOWERRemoves spaces and converts to lower case.
Example: 'Add Customer
becomesaddcustomer`
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class>EMPTYpublic final static StringTransformationsINSTANCE
-
Method Summary
Modifier and Type Method Description final Stringtransform(String $self, StringTransformation f)final StringTransformationSHORTEN(Integer maxLength, String append)final <Error class: unknown class>getEMPTY()-
-
Method Detail
-
transform
final String transform(String $self, StringTransformation f)
-
SHORTEN
final StringTransformation SHORTEN(Integer maxLength, String append)
-
getEMPTY
final <Error class: unknown class> getEMPTY()
-
-
-
-