Class NumberUtils


  • public class NumberUtils
    extends Object
    • Constructor Detail

      • NumberUtils

        public NumberUtils()
    • Method Detail

      • readableSize

        public static String readableSize​(long size)
      • int2sortableStr

        public static String int2sortableStr​(int val)
      • int2sortableStr

        public static String int2sortableStr​(String val)
      • SortableStr2int

        public static String SortableStr2int​(String val)
      • SortableStr2int

        public static String SortableStr2int​(org.apache.lucene.util.BytesRef val)
      • long2sortableStr

        public static String long2sortableStr​(long val)
      • long2sortableStr

        public static String long2sortableStr​(String val)
      • SortableStr2long

        public static String SortableStr2long​(String val)
      • SortableStr2long

        public static String SortableStr2long​(org.apache.lucene.util.BytesRef val)
      • float2sortableStr

        public static String float2sortableStr​(float val)
      • float2sortableStr

        public static String float2sortableStr​(String val)
      • SortableStr2float

        public static float SortableStr2float​(String val)
      • SortableStr2float

        public static float SortableStr2float​(org.apache.lucene.util.BytesRef val)
      • SortableStr2floatStr

        public static String SortableStr2floatStr​(String val)
      • double2sortableStr

        public static String double2sortableStr​(double val)
      • double2sortableStr

        public static String double2sortableStr​(String val)
      • SortableStr2double

        public static double SortableStr2double​(String val)
      • SortableStr2double

        public static double SortableStr2double​(org.apache.lucene.util.BytesRef val)
      • SortableStr2doubleStr

        public static String SortableStr2doubleStr​(String val)
      • int2sortableStr

        public static int int2sortableStr​(int val,
                                          char[] out,
                                          int offset)
      • SortableStr2int

        public static int SortableStr2int​(String sval,
                                          int offset,
                                          int len)
      • SortableStr2int

        public static int SortableStr2int​(org.apache.lucene.util.BytesRef sval,
                                          int offset,
                                          int len)
      • long2sortableStr

        public static int long2sortableStr​(long val,
                                           char[] out,
                                           int offset)
      • SortableStr2long

        public static long SortableStr2long​(String sval,
                                            int offset,
                                            int len)
      • SortableStr2long

        public static long SortableStr2long​(org.apache.lucene.util.BytesRef sval,
                                            int offset,
                                            int len)
      • intToBytes

        public static byte[] intToBytes​(int val)
      • bytesToInt

        public static int bytesToInt​(byte[] bytes)