public final class Convert
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<byte[]> |
byteArrayComparator |
static byte[] |
EMPTY_BYTE |
static byte[][] |
EMPTY_BYTES |
static long[] |
EMPTY_LONG |
static java.lang.String[] |
EMPTY_STRING |
static java.math.BigInteger |
two64 |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compress(byte[] bytes) |
static byte[] |
emptyToNull(byte[] bytes) |
static java.lang.String |
emptyToNull(java.lang.String s) |
static long |
fromEpochTime(int epochTime) |
static long |
fullHashToId(byte[] hash) |
static byte[][] |
nullToEmpty(byte[][] bytes) |
static long[] |
nullToEmpty(long[] array) |
static java.lang.String |
nullToEmpty(java.lang.String s) |
static long |
nullToZero(java.lang.Long l) |
static long |
parseAccountId(java.lang.String account) |
static byte[] |
parseHexString(java.lang.String hex) |
static long |
parseLong(java.lang.Object o) |
static long |
parseNXT(java.lang.String nxt) |
static long |
parseUnsignedLong(java.lang.String number) |
static java.lang.String |
readString(java.nio.ByteBuffer buffer,
int numBytes,
int maxLength) |
static java.lang.String |
rsAccount(long accountId) |
static long[] |
toArray(java.util.List<java.lang.Long> list) |
static java.lang.Long[] |
toArray(long[] array) |
static long[] |
toArray(java.lang.Long[] array) |
static byte[] |
toBytes(long n) |
static byte[] |
toBytes(java.lang.String s) |
static byte[] |
toBytes(java.lang.String s,
boolean isText) |
static int |
toEpochTime(long currentTime) |
static java.lang.String |
toHexString(byte[] bytes) |
static java.util.List<java.lang.Long> |
toList(long[] array) |
static java.util.Set<java.lang.Long> |
toSet(long[] array) |
static java.lang.String |
toString(byte[] bytes) |
static java.lang.String |
toString(byte[] bytes,
boolean isText) |
static java.lang.String |
truncate(java.lang.String s,
java.lang.String replaceNull,
int limit,
boolean dots) |
static byte[] |
uncompress(byte[] bytes) |
public static final java.math.BigInteger two64
public static final long[] EMPTY_LONG
public static final byte[] EMPTY_BYTE
public static final byte[][] EMPTY_BYTES
public static final java.lang.String[] EMPTY_STRING
public static final java.util.Comparator<byte[]> byteArrayComparator
public static byte[] parseHexString(java.lang.String hex)
public static java.lang.String toHexString(byte[] bytes)
public static long parseUnsignedLong(java.lang.String number)
public static long parseLong(java.lang.Object o)
public static long parseAccountId(java.lang.String account)
public static java.lang.String rsAccount(long accountId)
public static long fullHashToId(byte[] hash)
public static long fromEpochTime(int epochTime)
public static int toEpochTime(long currentTime)
public static java.lang.String emptyToNull(java.lang.String s)
public static java.lang.String nullToEmpty(java.lang.String s)
public static byte[] emptyToNull(byte[] bytes)
public static byte[][] nullToEmpty(byte[][] bytes)
public static long[] nullToEmpty(long[] array)
public static long nullToZero(java.lang.Long l)
public static long[] toArray(java.util.List<java.lang.Long> list)
public static java.util.List<java.lang.Long> toList(long[] array)
public static java.lang.Long[] toArray(long[] array)
public static long[] toArray(java.lang.Long[] array)
public static java.util.Set<java.lang.Long> toSet(long[] array)
public static byte[] toBytes(java.lang.String s)
public static byte[] toBytes(java.lang.String s, boolean isText)
public static java.lang.String toString(byte[] bytes)
public static java.lang.String toString(byte[] bytes, boolean isText)
public static byte[] toBytes(long n)
public static java.lang.String readString(java.nio.ByteBuffer buffer, int numBytes, int maxLength) throws NxtException.NotValidException
NxtException.NotValidException
public static java.lang.String truncate(java.lang.String s, java.lang.String replaceNull, int limit, boolean dots)
public static long parseNXT(java.lang.String nxt)
public static byte[] compress(byte[] bytes)
public static byte[] uncompress(byte[] bytes)