public final class NameUtils extends Object
Utility functions related to naming
Modifier and Type | Method and Description |
---|---|
static String |
canonicalizeForEnumTypes(String name)
Canonicalizes a name for use in enum types.
|
static String |
decanonicalizeFromEnumTypes(String name)
Convert enum type name to un-canonicalized name *
|
public static String canonicalizeForEnumTypes(String name)
Canonicalizes a name for use in enum types. This specifically is for enum ids (values) that matched the enum name except were lower case and used hyphen delimiters vs upper case and underscores (enum naming convention)
name
- The un-canonicalized name.Copyright © 2016–2022. All rights reserved.