public class NumericEncoder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
decodeInt(java.lang.String hex) |
static long |
decodeLong(java.lang.String hex)
Secode a long
|
static java.lang.String |
encode(double doubleToEncode)
Encode a double into a string that orders correctly according to string
comparison.
|
static java.lang.String |
encode(float floatToEncode)
Encode a float into a string that orders correctly according to string
comparison.
|
static java.lang.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 java.lang.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.
|
public static java.lang.String encode(int intToEncode)
intToEncode
- public static java.lang.String encode(long longToEncode)
longToEncode
- public static long decodeLong(java.lang.String hex)
hex
- public static int decodeInt(java.lang.String hex)
public static java.lang.String encode(float floatToEncode)
floatToEncode
- public static java.lang.String encode(double doubleToEncode)
doubleToEncode
- Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.