public enum Maths extends Enum<Maths>
Modifier and Type | Method and Description |
---|---|
static long |
agitate(long l) |
static int |
hash(CharSequence cs) |
static int |
intLog2(long num) |
static long |
longHash(CharSequence cs) |
static long |
longHash(long l)
net.openhft.chronicle.bytes.algo.NativeBytesHash
|
static int |
nextPower2(int n,
int min) |
static long |
nextPower2(long n,
long min) |
static double |
round2(double d)
Performs a round which is accurate to within 1 ulp.
|
static double |
round4(double d)
Performs a round which is accurate to within 1 ulp.
|
static double |
round6(double d)
Performs a round which is accurate to within 1 ulp.
|
static double |
round8(double d)
Performs a round which is accurate to within 1 ulp.
|
static short |
toInt16(long x) |
static int |
toInt32(long x) |
static int |
toInt32(long x,
String msg) |
static byte |
toInt8(long x) |
static int |
toUInt16(long x) |
static int |
toUInt31(long x) |
static long |
toUInt32(long x) |
static short |
toUInt8(long x) |
static Maths |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Maths[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Maths[] values()
for (Maths c : Maths.values()) System.out.println(c);
public static Maths valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static double round2(double d)
d
- value to roundpublic static double round4(double d)
d
- value to roundpublic static double round6(double d)
d
- value to roundpublic static double round8(double d)
d
- value to roundpublic static int nextPower2(int n, int min)
public static long nextPower2(long n, long min)
public static int hash(CharSequence cs)
public static long longHash(CharSequence cs)
public static int intLog2(long num)
public static byte toInt8(long x)
public static short toInt16(long x)
public static int toInt32(long x, String msg)
public static int toInt32(long x)
public static short toUInt8(long x)
public static int toUInt16(long x)
public static int toUInt31(long x)
public static long toUInt32(long x)
public static long agitate(long l)
public static long longHash(long l)
l
- to hashCopyright © 2015. All rights reserved.