org.crsh.util
Class Strings
java.lang.Object
org.crsh.util.Strings
public class Strings
- extends Object
Field Summary |
private static Pattern |
p
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p
private static final Pattern p
- .
Strings
public Strings()
chunks
public static List<String> chunks(CharSequence s)
join
public static String join(Iterable<String> strings,
String separator)
split
public static String[] split(CharSequence s,
char separator)
split
public static String[] split(CharSequence s,
char separator,
int rightPadding)
foo
private static String[] foo(CharSequence s,
char separator,
int count,
int from,
int rightPadding)
findLongestCommonPrefix
public static String findLongestCommonPrefix(CharSequence... seqs)
- See Also:
findLongestCommonPrefix(Iterable)
findLongestCommonPrefix
public static String findLongestCommonPrefix(Iterable<? extends CharSequence> seqs)
- Find the longest possible common prefix of the provided char sequence.
- Parameters:
seqs
- the sequences
- Returns:
- the longest possible prefix
Copyright © 2014 eXo Platform SAS. All Rights Reserved.