Class FlagUtil
java.lang.Object
net.ntrdeal.realapi.util.FlagUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckFlag(int flag, int flagSize) static booleanisSet(byte flags, int flag) static booleanisSet(int flags, int flag) static booleanisSet(long flags, int flag) static booleanisSet(short flags, int flag) static byteset(byte flags, int flag) static intset(int flags, int flag) static longset(long flags, int flag) static shortset(short flags, int flag) static bytetoggle(byte flags, int flag) static inttoggle(int flags, int flag) static longtoggle(long flags, int flag) static shorttoggle(short flags, int flag) static byteunset(byte flags, int flag) static intunset(int flags, int flag) static longunset(long flags, int flag) static shortunset(short flags, int flag)
-
Method Details
-
isSet
public static boolean isSet(long flags, int flag) -
isSet
public static boolean isSet(int flags, int flag) -
isSet
public static boolean isSet(short flags, int flag) -
isSet
public static boolean isSet(byte flags, int flag) -
set
public static long set(long flags, int flag) -
set
public static int set(int flags, int flag) -
set
public static short set(short flags, int flag) -
set
public static byte set(byte flags, int flag) -
unset
public static long unset(long flags, int flag) -
unset
public static int unset(int flags, int flag) -
unset
public static short unset(short flags, int flag) -
unset
public static byte unset(byte flags, int flag) -
toggle
public static long toggle(long flags, int flag) -
toggle
public static int toggle(int flags, int flag) -
toggle
public static short toggle(short flags, int flag) -
toggle
public static byte toggle(byte flags, int flag) -
checkFlag
public static void checkFlag(int flag, int flagSize)
-