org.crsh.util
Class Strings

java.lang.Object
  extended by org.crsh.util.Strings

public class Strings
extends Object

Version:
$Revision$
Author:
Julien Viet

Field Summary
private static Pattern p
          .
 
Constructor Summary
Strings()
           
 
Method Summary
static List<String> chunks(CharSequence s)
           
static String findLongestCommonPrefix(CharSequence... seqs)
           
static String findLongestCommonPrefix(Iterable<? extends CharSequence> seqs)
          Find the longest possible common prefix of the provided char sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p

private static final Pattern p
.

Constructor Detail

Strings

public Strings()
Method Detail

chunks

public static List<String> chunks(CharSequence s)

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 © 2012 eXo Platform SAS. All Rights Reserved.