Package org.zkoss.pivot.impl.util
Class Texts
- java.lang.Object
-
- org.zkoss.pivot.impl.util.Texts
-
public class Texts extends Object
String related utility.- Author:
- simonpai
-
-
Constructor Summary
Constructors Constructor Description Texts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
capitalize(String str)
Capitalize a stringstatic int
getRankIndex(String key)
Convert key back to array indexstatic int[]
getRankIndices(String key)
Convert key back to an array of node indicesstatic String
getRankKey(int index)
Return a hash key for at node given indexstatic String
getRankKey(int index, int depth)
Return a hash key for node at given index and depth
-
-
-
Method Detail
-
getRankKey
public static String getRankKey(int index, int depth)
Return a hash key for node at given index and depth
-
getRankKey
public static String getRankKey(int index)
Return a hash key for at node given index
-
getRankIndices
public static int[] getRankIndices(String key)
Convert key back to an array of node indices
-
getRankIndex
public static int getRankIndex(String key)
Convert key back to array index
-
-