Package zombie.core.utils
Class Bits
java.lang.Object
zombie.core.utils.Bits
public class Bits
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bits.CompareOption
-
Field Summary
Fields Modifier and Type Field Description static int
BIT_0
static int
BIT_1
static int
BIT_10
static int
BIT_11
static int
BIT_12
static int
BIT_13
static int
BIT_14
static int
BIT_15
static int
BIT_16
static int
BIT_17
static int
BIT_18
static int
BIT_19
static int
BIT_2
static int
BIT_20
static int
BIT_21
static int
BIT_22
static int
BIT_23
static int
BIT_24
static int
BIT_25
static int
BIT_26
static int
BIT_27
static int
BIT_28
static int
BIT_29
static int
BIT_3
static int
BIT_30
static int
BIT_31
static long
BIT_32
static long
BIT_33
static long
BIT_34
static long
BIT_35
static long
BIT_36
static long
BIT_37
static long
BIT_38
static long
BIT_39
static int
BIT_4
static long
BIT_40
static long
BIT_41
static long
BIT_42
static long
BIT_43
static long
BIT_44
static long
BIT_45
static long
BIT_46
static long
BIT_47
static long
BIT_48
static long
BIT_49
static int
BIT_5
static long
BIT_50
static long
BIT_51
static long
BIT_52
static long
BIT_53
static long
BIT_54
static long
BIT_55
static long
BIT_56
static long
BIT_57
static long
BIT_58
static long
BIT_59
static int
BIT_6
static long
BIT_60
static long
BIT_61
static long
BIT_62
static long
BIT_63
static int
BIT_7
static int
BIT_8
static int
BIT_9
static int
BIT_BYTE_MAX
static int
BIT_INT_MAX
static long
BIT_LONG_MAX
static int
BIT_SHORT_MAX
static boolean
ENABLED
-
Constructor Summary
Constructors Constructor Description Bits()
-
Method Summary
Modifier and Type Method Description static byte
addFlags(byte byte1, int int1)
static byte
addFlags(byte byte1, long long1)
static int
addFlags(int int1, int int2)
static int
addFlags(int int1, long long1)
static long
addFlags(long long1, int int1)
static long
addFlags(long long1, long long2)
static short
addFlags(short short1, int int1)
static short
addFlags(short short1, long long1)
static boolean
checkFlags(int int1, int int2, int int3, Bits.CompareOption compareOption)
static boolean
checkFlags(long long1, long long2, long long3, Bits.CompareOption compareOption)
static java.lang.String
getBitsString(byte byte1)
static java.lang.String
getBitsString(int int1)
static java.lang.String
getBitsString(long long1)
static java.lang.String
getBitsString(short short1)
static int
getLen(byte byte1)
static int
getLen(int int1)
static int
getLen(long long1)
static int
getLen(short short1)
static boolean
hasEitherFlags(byte byte1, int int1)
static boolean
hasEitherFlags(byte byte1, long long1)
static boolean
hasEitherFlags(int int1, int int2)
static boolean
hasEitherFlags(int int1, long long1)
static boolean
hasEitherFlags(long long1, int int1)
static boolean
hasEitherFlags(long long1, long long2)
static boolean
hasEitherFlags(short short1, int int1)
static boolean
hasEitherFlags(short short1, long long1)
static boolean
hasFlags(byte byte1, int int1)
static boolean
hasFlags(byte byte1, long long1)
static boolean
hasFlags(int int1, int int2)
static boolean
hasFlags(int int1, long long1)
static boolean
hasFlags(long long1, int int1)
static boolean
hasFlags(long long1, long long2)
static boolean
hasFlags(short short1, int int1)
static boolean
hasFlags(short short1, long long1)
static boolean
notHasFlags(byte byte1, int int1)
static boolean
notHasFlags(byte byte1, long long1)
static boolean
notHasFlags(int int1, int int2)
static boolean
notHasFlags(int int1, long long1)
static boolean
notHasFlags(long long1, int int1)
static boolean
notHasFlags(long long1, long long2)
static boolean
notHasFlags(short short1, int int1)
static boolean
notHasFlags(short short1, long long1)
static byte
packFloatUnitToByte(float float1)
static float
unpackByteToFloatUnit(byte byte1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ENABLED
public static final boolean ENABLED- See Also:
- Constant Field Values
-
BIT_0
public static final int BIT_0- See Also:
- Constant Field Values
-
BIT_1
public static final int BIT_1- See Also:
- Constant Field Values
-
BIT_2
public static final int BIT_2- See Also:
- Constant Field Values
-
BIT_3
public static final int BIT_3- See Also:
- Constant Field Values
-
BIT_4
public static final int BIT_4- See Also:
- Constant Field Values
-
BIT_5
public static final int BIT_5- See Also:
- Constant Field Values
-
BIT_6
public static final int BIT_6- See Also:
- Constant Field Values
-
BIT_7
public static final int BIT_7- See Also:
- Constant Field Values
-
BIT_BYTE_MAX
public static final int BIT_BYTE_MAX- See Also:
- Constant Field Values
-
BIT_8
public static final int BIT_8- See Also:
- Constant Field Values
-
BIT_9
public static final int BIT_9- See Also:
- Constant Field Values
-
BIT_10
public static final int BIT_10- See Also:
- Constant Field Values
-
BIT_11
public static final int BIT_11- See Also:
- Constant Field Values
-
BIT_12
public static final int BIT_12- See Also:
- Constant Field Values
-
BIT_13
public static final int BIT_13- See Also:
- Constant Field Values
-
BIT_14
public static final int BIT_14- See Also:
- Constant Field Values
-
BIT_15
public static final int BIT_15- See Also:
- Constant Field Values
-
BIT_SHORT_MAX
public static final int BIT_SHORT_MAX- See Also:
- Constant Field Values
-
BIT_16
public static final int BIT_16- See Also:
- Constant Field Values
-
BIT_17
public static final int BIT_17- See Also:
- Constant Field Values
-
BIT_18
public static final int BIT_18- See Also:
- Constant Field Values
-
BIT_19
public static final int BIT_19- See Also:
- Constant Field Values
-
BIT_20
public static final int BIT_20- See Also:
- Constant Field Values
-
BIT_21
public static final int BIT_21- See Also:
- Constant Field Values
-
BIT_22
public static final int BIT_22- See Also:
- Constant Field Values
-
BIT_23
public static final int BIT_23- See Also:
- Constant Field Values
-
BIT_24
public static final int BIT_24- See Also:
- Constant Field Values
-
BIT_25
public static final int BIT_25- See Also:
- Constant Field Values
-
BIT_26
public static final int BIT_26- See Also:
- Constant Field Values
-
BIT_27
public static final int BIT_27- See Also:
- Constant Field Values
-
BIT_28
public static final int BIT_28- See Also:
- Constant Field Values
-
BIT_29
public static final int BIT_29- See Also:
- Constant Field Values
-
BIT_30
public static final int BIT_30- See Also:
- Constant Field Values
-
BIT_31
public static final int BIT_31- See Also:
- Constant Field Values
-
BIT_INT_MAX
public static final int BIT_INT_MAX- See Also:
- Constant Field Values
-
BIT_32
public static final long BIT_32- See Also:
- Constant Field Values
-
BIT_33
public static final long BIT_33- See Also:
- Constant Field Values
-
BIT_34
public static final long BIT_34- See Also:
- Constant Field Values
-
BIT_35
public static final long BIT_35- See Also:
- Constant Field Values
-
BIT_36
public static final long BIT_36- See Also:
- Constant Field Values
-
BIT_37
public static final long BIT_37- See Also:
- Constant Field Values
-
BIT_38
public static final long BIT_38- See Also:
- Constant Field Values
-
BIT_39
public static final long BIT_39- See Also:
- Constant Field Values
-
BIT_40
public static final long BIT_40- See Also:
- Constant Field Values
-
BIT_41
public static final long BIT_41- See Also:
- Constant Field Values
-
BIT_42
public static final long BIT_42- See Also:
- Constant Field Values
-
BIT_43
public static final long BIT_43- See Also:
- Constant Field Values
-
BIT_44
public static final long BIT_44- See Also:
- Constant Field Values
-
BIT_45
public static final long BIT_45- See Also:
- Constant Field Values
-
BIT_46
public static final long BIT_46- See Also:
- Constant Field Values
-
BIT_47
public static final long BIT_47- See Also:
- Constant Field Values
-
BIT_48
public static final long BIT_48- See Also:
- Constant Field Values
-
BIT_49
public static final long BIT_49- See Also:
- Constant Field Values
-
BIT_50
public static final long BIT_50- See Also:
- Constant Field Values
-
BIT_51
public static final long BIT_51- See Also:
- Constant Field Values
-
BIT_52
public static final long BIT_52- See Also:
- Constant Field Values
-
BIT_53
public static final long BIT_53- See Also:
- Constant Field Values
-
BIT_54
public static final long BIT_54- See Also:
- Constant Field Values
-
BIT_55
public static final long BIT_55- See Also:
- Constant Field Values
-
BIT_56
public static final long BIT_56- See Also:
- Constant Field Values
-
BIT_57
public static final long BIT_57- See Also:
- Constant Field Values
-
BIT_58
public static final long BIT_58- See Also:
- Constant Field Values
-
BIT_59
public static final long BIT_59- See Also:
- Constant Field Values
-
BIT_60
public static final long BIT_60- See Also:
- Constant Field Values
-
BIT_61
public static final long BIT_61- See Also:
- Constant Field Values
-
BIT_62
public static final long BIT_62- See Also:
- Constant Field Values
-
BIT_63
public static final long BIT_63- See Also:
- Constant Field Values
-
BIT_LONG_MAX
public static final long BIT_LONG_MAX- See Also:
- Constant Field Values
-
-
Constructor Details
-
Bits
public Bits()
-
-
Method Details
-
packFloatUnitToByte
public static byte packFloatUnitToByte(float float1) -
unpackByteToFloatUnit
public static float unpackByteToFloatUnit(byte byte1) -
addFlags
public static byte addFlags(byte byte1, int int1) -
addFlags
public static byte addFlags(byte byte1, long long1) -
addFlags
public static short addFlags(short short1, int int1) -
addFlags
public static short addFlags(short short1, long long1) -
addFlags
public static int addFlags(int int1, int int2) -
addFlags
public static int addFlags(int int1, long long1) -
addFlags
public static long addFlags(long long1, int int1) -
addFlags
public static long addFlags(long long1, long long2) -
hasFlags
public static boolean hasFlags(byte byte1, int int1) -
hasFlags
public static boolean hasFlags(byte byte1, long long1) -
hasEitherFlags
public static boolean hasEitherFlags(byte byte1, int int1) -
hasEitherFlags
public static boolean hasEitherFlags(byte byte1, long long1) -
notHasFlags
public static boolean notHasFlags(byte byte1, int int1) -
notHasFlags
public static boolean notHasFlags(byte byte1, long long1) -
hasFlags
public static boolean hasFlags(short short1, int int1) -
hasFlags
public static boolean hasFlags(short short1, long long1) -
hasEitherFlags
public static boolean hasEitherFlags(short short1, int int1) -
hasEitherFlags
public static boolean hasEitherFlags(short short1, long long1) -
notHasFlags
public static boolean notHasFlags(short short1, int int1) -
notHasFlags
public static boolean notHasFlags(short short1, long long1) -
hasFlags
public static boolean hasFlags(int int1, int int2) -
hasFlags
public static boolean hasFlags(int int1, long long1) -
hasEitherFlags
public static boolean hasEitherFlags(int int1, int int2) -
hasEitherFlags
public static boolean hasEitherFlags(int int1, long long1) -
notHasFlags
public static boolean notHasFlags(int int1, int int2) -
notHasFlags
public static boolean notHasFlags(int int1, long long1) -
hasFlags
public static boolean hasFlags(long long1, int int1) -
hasFlags
public static boolean hasFlags(long long1, long long2) -
hasEitherFlags
public static boolean hasEitherFlags(long long1, int int1) -
hasEitherFlags
public static boolean hasEitherFlags(long long1, long long2) -
notHasFlags
public static boolean notHasFlags(long long1, int int1) -
notHasFlags
public static boolean notHasFlags(long long1, long long2) -
checkFlags
-
checkFlags
public static boolean checkFlags(long long1, long long2, long long3, Bits.CompareOption compareOption) -
getLen
public static int getLen(byte byte1) -
getLen
public static int getLen(short short1) -
getLen
public static int getLen(int int1) -
getLen
public static int getLen(long long1) -
getBitsString
public static java.lang.String getBitsString(byte byte1) -
getBitsString
public static java.lang.String getBitsString(short short1) -
getBitsString
public static java.lang.String getBitsString(int int1) -
getBitsString
public static java.lang.String getBitsString(long long1)
-