org.compass.core.converter.basic.format
Class NumberUtils

java.lang.Object
  extended by org.compass.core.converter.basic.format.NumberUtils

public class NumberUtils
extends Object

Author:
kimchy

Constructor Summary
NumberUtils()
           
 
Method Summary
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 double SortableStr2double(String val)
           
static String SortableStr2doubleStr(String val)
           
static float SortableStr2float(String val)
           
static String SortableStr2floatStr(String val)
           
static int SortableStr2int(String val)
           
static int SortableStr2int(String sval, int offset, int len)
           
static long SortableStr2long(String val)
           
static long SortableStr2long(String sval, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberUtils

public NumberUtils()
Method Detail

int2sortableStr

public static String int2sortableStr(int val)

int2sortableStr

public static String int2sortableStr(String val)

SortableStr2int

public static int SortableStr2int(String val)

long2sortableStr

public static String long2sortableStr(long val)

long2sortableStr

public static String long2sortableStr(String val)

SortableStr2long

public static long SortableStr2long(String val)

float2sortableStr

public static String float2sortableStr(float val)

float2sortableStr

public static String float2sortableStr(String val)

SortableStr2float

public static float SortableStr2float(String 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)

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)

long2sortableStr

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

SortableStr2long

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


Copyright (c) 2004-2008 The Compass Project.