public class NumericEncoder extends Object
Modifier and Type | Method and Description |
---|---|
static int |
decodeInt(String hex) |
static long |
decodeLong(String hex)
Secode a long
|
static String |
encode(double doubleToEncode)
Encode a double into a string that orders correctly according to string
comparison.
|
static String |
encode(float floatToEncode)
Encode a float into a string that orders correctly according to string
comparison.
|
static String |
encode(int intToEncode)
Encode an integer into a string that orders correctly using string
comparison Integer.MIN_VALUE encodes as 00000000 and MAX_VALUE as
ffffffff.
|
static String |
encode(long longToEncode)
Encode a long into a string that orders correctly using string comparison
Long.MIN_VALUE encodes as 0000000000000000 and MAX_VALUE as
ffffffffffffffff.
|
static String |
encode(Long longToEncode) |
public static String encode(int intToEncode)
intToEncode
- intpublic static String encode(long longToEncode)
longToEncode
- longpublic static long decodeLong(String hex)
hex
- Stringpublic static int decodeInt(String hex)
public static String encode(float floatToEncode)
floatToEncode
- floatpublic static String encode(double doubleToEncode)
doubleToEncode
- doubleCopyright © 2005–2019 Alfresco Software. All rights reserved.