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 classBits.CompareOption -
Field Summary
Fields Modifier and Type Field Description static intBIT_0static intBIT_1static intBIT_10static intBIT_11static intBIT_12static intBIT_13static intBIT_14static intBIT_15static intBIT_16static intBIT_17static intBIT_18static intBIT_19static intBIT_2static intBIT_20static intBIT_21static intBIT_22static intBIT_23static intBIT_24static intBIT_25static intBIT_26static intBIT_27static intBIT_28static intBIT_29static intBIT_3static intBIT_30static intBIT_31static longBIT_32static longBIT_33static longBIT_34static longBIT_35static longBIT_36static longBIT_37static longBIT_38static longBIT_39static intBIT_4static longBIT_40static longBIT_41static longBIT_42static longBIT_43static longBIT_44static longBIT_45static longBIT_46static longBIT_47static longBIT_48static longBIT_49static intBIT_5static longBIT_50static longBIT_51static longBIT_52static longBIT_53static longBIT_54static longBIT_55static longBIT_56static longBIT_57static longBIT_58static longBIT_59static intBIT_6static longBIT_60static longBIT_61static longBIT_62static longBIT_63static intBIT_7static intBIT_8static intBIT_9static intBIT_BYTE_MAXstatic intBIT_INT_MAXstatic longBIT_LONG_MAXstatic intBIT_SHORT_MAXstatic booleanENABLED -
Constructor Summary
Constructors Constructor Description Bits() -
Method Summary
Modifier and Type Method Description static byteaddFlags(byte byte1, int int1)static byteaddFlags(byte byte1, long long1)static intaddFlags(int int1, int int2)static intaddFlags(int int1, long long1)static longaddFlags(long long1, int int1)static longaddFlags(long long1, long long2)static shortaddFlags(short short1, int int1)static shortaddFlags(short short1, long long1)static booleancheckFlags(int int1, int int2, int int3, Bits.CompareOption compareOption)static booleancheckFlags(long long1, long long2, long long3, Bits.CompareOption compareOption)static java.lang.StringgetBitsString(byte byte1)static java.lang.StringgetBitsString(int int1)static java.lang.StringgetBitsString(long long1)static java.lang.StringgetBitsString(short short1)static intgetLen(byte byte1)static intgetLen(int int1)static intgetLen(long long1)static intgetLen(short short1)static booleanhasEitherFlags(byte byte1, int int1)static booleanhasEitherFlags(byte byte1, long long1)static booleanhasEitherFlags(int int1, int int2)static booleanhasEitherFlags(int int1, long long1)static booleanhasEitherFlags(long long1, int int1)static booleanhasEitherFlags(long long1, long long2)static booleanhasEitherFlags(short short1, int int1)static booleanhasEitherFlags(short short1, long long1)static booleanhasFlags(byte byte1, int int1)static booleanhasFlags(byte byte1, long long1)static booleanhasFlags(int int1, int int2)static booleanhasFlags(int int1, long long1)static booleanhasFlags(long long1, int int1)static booleanhasFlags(long long1, long long2)static booleanhasFlags(short short1, int int1)static booleanhasFlags(short short1, long long1)static booleannotHasFlags(byte byte1, int int1)static booleannotHasFlags(byte byte1, long long1)static booleannotHasFlags(int int1, int int2)static booleannotHasFlags(int int1, long long1)static booleannotHasFlags(long long1, int int1)static booleannotHasFlags(long long1, long long2)static booleannotHasFlags(short short1, int int1)static booleannotHasFlags(short short1, long long1)static bytepackFloatUnitToByte(float float1)static floatunpackByteToFloatUnit(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)
-