org.zkoss.pivot.impl.util
Class Texts

java.lang.Object
  extended by org.zkoss.pivot.impl.util.Texts

public class Texts
extends java.lang.Object

String related utility.

Author:
simonpai

Constructor Summary
Texts()
           
 
Method Summary
static java.lang.String capitalize(java.lang.String str)
          Capitalize a string
static int getRankIndex(java.lang.String key)
          Convert key back to array index
static int[] getRankIndices(java.lang.String key)
          Convert key back to an array of node indices
static java.lang.String getRankKey(int index)
          Return a hash key for at node given index
static java.lang.String getRankKey(int index, int depth)
          Return a hash key for node at given index and depth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Texts

public Texts()
Method Detail

capitalize

public static java.lang.String capitalize(java.lang.String str)
Capitalize a string


getRankKey

public static java.lang.String getRankKey(int index,
                                          int depth)
Return a hash key for node at given index and depth


getRankKey

public static java.lang.String getRankKey(int index)
Return a hash key for at node given index


getRankIndices

public static int[] getRankIndices(java.lang.String key)
Convert key back to an array of node indices


getRankIndex

public static int getRankIndex(java.lang.String key)
Convert key back to array index



Copyright © 2013. All Rights Reserved.