jlibs.core.lang
Class Flag

java.lang.Object
  extended by jlibs.core.lang.Flag

public class Flag
extends Object

This class contains helper methods for working with bitwise flags

Author:
Santhosh Kumar T

Constructor Summary
Flag()
           
 
Method Summary
static boolean isSet(int value, int flag)
           
static boolean isSet(long value, long flag)
           
static int set(int value, int flag)
           
static long set(long value, long flag)
           
static int toggle(int value, int flag)
           
static long toggle(long value, long flag)
           
static int unset(int value, int flag)
           
static long unset(long value, long flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Flag

public Flag()
Method Detail

set

public static int set(int value,
                      int flag)

isSet

public static boolean isSet(int value,
                            int flag)

unset

public static int unset(int value,
                        int flag)

toggle

public static int toggle(int value,
                         int flag)

set

public static long set(long value,
                       long flag)

isSet

public static boolean isSet(long value,
                            long flag)

unset

public static long unset(long value,
                         long flag)

toggle

public static long toggle(long value,
                          long flag)


Copyright © 2018. All rights reserved.