public class StringUtil
extends org.pfsw.text.StringUtil
Modifier and Type | Method and Description |
---|---|
boolean |
contains(char[] charArray,
char ch) |
static StringUtil |
instance()
Returns the only instance this class supports (design pattern "Singleton")
|
java.lang.String |
reduceStringLength(java.lang.String aString,
int maxLen,
java.lang.String separator,
java.lang.String gap,
boolean keepFirst)
Reduce the given string to the specified maximum length using the gap
to be shown instead of the left out substring.
|
addAll, addAll, addAllNew, allParts, allParts, allParts, allSubstrings, append, append, appendIfNotThere, appendIfNotThere, areEqual, areEqualIgnoreCase, asConfigSettings, asConfigSettings, asConfigSettings, asConfigSettings, asInteger, asLong, asMap, asMap, asMap, asMap, asProperties, asReadOnlyNamedValues, asReadOnlyNamedValues, asSortedString, asSortedString, asSortedString, asSortedString, asString, asString, asString, asString, asString, asString, asString, asString, asStringEnclosed, asStrings, asStrings, bytesToHex, bytesToHex, center, centerCh, collectParts, collectParts, concat, contains, contains, contains, contains, containsIgnoreCase, copy, copy, copy, copyFrom, copyFrom, copyLowerCase, copyMapToProperties, copyStrings, copyUpperCase, copyWithout, copyWithout, count, current, cutHead, cutTail, equals, findInString1, getDelimitedSubstring, getDelimitedSubstring, getDelimitedSubstring, getDelimitedSubstring, getPackageName, getString, getString, getString, getUnqualifiedClassName, hexToBytes, hexToBytes, indexOf, indexOf, indexOf, indexOfIgnoreCase, indexOfString, isAnyNullOrBlank, isFalse, isInteger, isLong, isNoneNullOrBlank, isNullOrBlank, isNullOrEmpty, isNullOrEmpty, isPositiveInteger, isPositiveLong, isTrue, isZeroOrPositiveInteger, isZeroOrPositiveLong, join, leftPad, leftPad, leftPad, leftPadCh, leftPadCh, leftPadCh, leftPadCh, notNullOrBlank, notNullOrEmpty, notNullOrEmpty, padCh, padCh, parts, parts, parts, parts, parts, prefix, prefix, quotedParts, quotedParts, remove, remove, removeAllChars, removeChar, removeCharsFromString, removeFromStringArray, removeNull, repeat, replaceAll, replaceEach, reverse, rightPad, rightPad, rightPad, rightPadCh, rightPadCh, rightPadCh, setFileNameExtension, split, splitNameValue, splitStringPair, stackTrace, startingFrom, substrings, substrings, suffix, suffix, toLowerCase, toMap, toMap, toMap, toProperties, toUpperCase, translate, trim, trimLoop, trimmedParts, trimOnce, trimSeparator, truncate, upTo, withLeadingChar, withoutLeadingChar, withoutTrailingChar, withTrailingChar, words
public static StringUtil instance()
public java.lang.String reduceStringLength(java.lang.String aString, int maxLen, java.lang.String separator, java.lang.String gap, boolean keepFirst)
public boolean contains(char[] charArray, char ch)