Package ch.rswk.util.core
Interface Strings
public interface Strings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.base.CharMatcherstatic final com.google.common.base.CharMatcherstatic final com.google.common.base.CharMatcherstatic final com.google.common.base.Splitterstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final com.google.common.base.CharMatcherstatic final com.fasterxml.uuid.NoArgGenerator -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic byte[]static StringbyteToBase64(byte[] b) static StringbyteToHex(byte[] b) static Stringstatic StringgetI18nString(Map<String, String> i18nTemplates, @Nullable String locale) static byte[]static StringintToString(int i) static StringnewUuid()static StringredactEmail(@Nullable String email) static StringredactPhone(@Nullable String phone) resolveI18Templates(Map<String, String> i18nTemplates) static StringresolveTemplate(String template) static intstringToInt(int i) static String
-
Field Details
-
A_TO_Z
static final com.google.common.base.CharMatcher A_TO_Z -
DIGITS
static final com.google.common.base.CharMatcher DIGITS -
A_TO_Z_AND_DIGITS
static final com.google.common.base.CharMatcher A_TO_Z_AND_DIGITS -
EMAIL_SPLITTER
static final com.google.common.base.Splitter EMAIL_SPLITTER -
FILE_SCHEME
- See Also:
-
LOCALE
-
REDACT_EMAIL_FORMAT
- See Also:
-
REDACT_PHONE_FORMAT
- See Also:
-
UNSAFE_FILE_NAME
static final com.google.common.base.CharMatcher UNSAFE_FILE_NAME -
UUID_GENERATOR
static final com.fasterxml.uuid.NoArgGenerator UUID_GENERATOR
-
-
Method Details
-
base64ToByte
-
byteToBase64
-
byteToHex
-
escape
-
getI18nString
-
hexToByte
-
intToString
-
newUuid
-
redactEmail
-
redactPhone
-
resolveI18Templates
-
resolveTemplate
-
stringToInt
static int stringToInt(int i) -
unescape
-