public class NameUtils extends Object
| Constructor and Description |
|---|
NameUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
firstToLowerCase(String name) |
static String |
firstToUpperCase(String name) |
static String |
toAbbreviatedName(String name)
Creates a capitalized, underscore delimited name from the given camel case
name and removes consonant characters where the name exceeds the given max.
|
static String |
toAbbreviatedName(String name,
int max)
Creates a capitalized, underscore delimited name from the given camel case
name and removes consonant characters where the name exceeds the given max.
|
static String |
toCamelCase(String name)
Creates a capitalized, underscore delimited name from the given camel case
name.
|
static String |
toConstantName(String name)
Creates a capitalized, underscore delimited name from the given camel case
name.
|
public static String toCamelCase(String name)
name - the namepublic static String toConstantName(String name)
name - the namepublic static String toAbbreviatedName(String name)
name - the namepublic static String toAbbreviatedName(String name, int max)
name - the namemax - the max size to allow before abbreviation begins.Copyright © 2024. All rights reserved.