Interface PersistenceMetaIdentifiers
-
public interface PersistenceMetaIdentifiers
-
-
Method Summary
Static Methods Modifier and Type Method Description static EqHashTable<String,Supplier<?>>
defineConstantSuppliers()
static String
normalizeIdentifier(String s)
Identifiers cannot have whitespaces at the end or the beginning.
-
-
-
Method Detail
-
normalizeIdentifier
static String normalizeIdentifier(String s)
Identifiers cannot have whitespaces at the end or the beginning. A string that only consists of whitespaces is considered no identifier at all. Note that for strings that don't have bordering whitespaces or are alreadynull
, this method takes very little time and does not allocate any new instances. Only the problematic case is any mentionable effort.- Parameters:
s
- the raw string to be normalized.- Returns:
- the normalized string, potentially
null
.
-
defineConstantSuppliers
static EqHashTable<String,Supplier<?>> defineConstantSuppliers()
-
-