public class NumberUtils extends Object
Constructor and Description |
---|
NumberUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
double2sortableStr(double val) |
static String |
double2sortableStr(String val) |
static String |
float2sortableStr(float val) |
static String |
float2sortableStr(String val) |
static String |
int2sortableStr(int val) |
static int |
int2sortableStr(int val,
char[] out,
int offset) |
static String |
int2sortableStr(String val) |
static String |
long2sortableStr(long val) |
static int |
long2sortableStr(long val,
char[] out,
int offset) |
static String |
long2sortableStr(String val) |
static String |
readableSize(long size) |
static double |
SortableStr2double(BytesRef val) |
static double |
SortableStr2double(String val) |
static String |
SortableStr2doubleStr(String val) |
static float |
SortableStr2float(BytesRef val) |
static float |
SortableStr2float(String val) |
static String |
SortableStr2floatStr(String val) |
static String |
SortableStr2int(BytesRef val) |
static int |
SortableStr2int(BytesRef sval,
int offset,
int len) |
static String |
SortableStr2int(String val) |
static int |
SortableStr2int(String sval,
int offset,
int len) |
static String |
SortableStr2long(BytesRef val) |
static long |
SortableStr2long(BytesRef sval,
int offset,
int len) |
static String |
SortableStr2long(String val) |
static long |
SortableStr2long(String sval,
int offset,
int len) |
public static String readableSize(long size)
public static String int2sortableStr(int val)
public static String long2sortableStr(long val)
public static String float2sortableStr(float val)
public static float SortableStr2float(String val)
public static float SortableStr2float(BytesRef val)
public static String double2sortableStr(double val)
public static double SortableStr2double(String val)
public static double SortableStr2double(BytesRef val)
public static int int2sortableStr(int val, char[] out, int offset)
public static int SortableStr2int(String sval, int offset, int len)
public static int SortableStr2int(BytesRef sval, int offset, int len)
public static int long2sortableStr(long val, char[] out, int offset)
public static long SortableStr2long(String sval, int offset, int len)
public static long SortableStr2long(BytesRef sval, int offset, int len)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.