public class Strings extends Object
Modifier and Type | Method and Description |
---|---|
static String |
capitalize(String string) |
static String |
decapitalize(String string) |
static String |
getSaveVariableName(String name,
Collection<String> existingVariableNames)
Returns a variable name which doesn't conflict with the given variable names existing in the same scope and the
Java keywords.
|
static String |
getSaveVariableName(String name,
String... existingVariableNames) |
static boolean |
isEmpty(String string) |
static String |
join(Iterable<?> iterable,
String separator) |
static String |
joinAndCamelize(Iterable<?> iterable) |
static String |
sanitizeIdentifierName(String identifier) |
public static boolean isEmpty(String string)
public static String getSaveVariableName(String name, String... existingVariableNames)
public static String getSaveVariableName(String name, Collection<String> existingVariableNames)
name
- the name to get a safe version forexistingVariableNames
- the names of other variables existing in the same scopeCopyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.