Class Texts


  • public class Texts
    extends Object
    String related utility.
    Author:
    simonpai
    • Constructor Detail

      • Texts

        public Texts()
    • Method Detail

      • capitalize

        public static String capitalize​(String str)
        Capitalize a string
      • 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