public class BitFieldHelper extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | getBooleanProperty(int field,
                  int mask)Gets a boolean value in a bit field. | 
| static boolean | getBooleanPropertyAtOffset(int field,
                          int offset)Gets a boolean value in a bit field. | 
| static int | getIntProperty(int field,
              int mask,
              int offset)Gets a int value in a bit field. | 
| static int | setBooleanProperty(int field,
                  boolean value,
                  int mask)Sets a boolean value in a bit field. | 
| static int | setBooleanProperty(int field,
                  int mask)Forces the boolean to true in a bit field. | 
| static int | setBooleanPropertyAtOffset(int field,
                          boolean value,
                          int offset)Forces the boolean to true in a bit field. | 
| static int | setBooleanPropertyAtOffset(int field,
                          int offset)Forces the boolean to true in a bit field. | 
| static int | setIntProperty(int field,
              int value,
              int mask,
              int offset)Sets a int value in a bit field. | 
| static int | unsetBooleanProperty(int field,
                    int mask)Forces the boolean to false in a bit field. | 
| static int | unsetBooleanPropertyAtOffset(int field,
                            int offset)Forces the boolean to false in a bit field. | 
public static boolean getBooleanProperty(int field,
                                         int mask)
field - the bit field.mask - the bit mask of the value in the int.public static boolean getBooleanPropertyAtOffset(int field,
                                                 int offset)
field - the bit field.offset - the offset of the boolean in the int.public static int getIntProperty(int field,
                                 int mask,
                                 int offset)
field - the bit field.mask - the bit mask of the value in the int.offset - the offset of the value in the int.public static int setBooleanProperty(int field,
                                     boolean value,
                                     int mask)
field - the bit field.value - the value to set.mask - the bit mask of the value in the int.public static int setBooleanProperty(int field,
                                     int mask)
field - the bit field.mask - the bit mask of the value in the int.public static int setBooleanPropertyAtOffset(int field,
                                             boolean value,
                                             int offset)
field - the bit field.value - the value to set.offset - the offset of the boolean in the int.public static int setBooleanPropertyAtOffset(int field,
                                             int offset)
field - the bit field.offset - the offset of the boolean in the int.public static int setIntProperty(int field,
                                 int value,
                                 int mask,
                                 int offset)
field - the bit field.value - the value to set.mask - the bit mask of the value in the int.offset - the offset of the value in the int.public static int unsetBooleanProperty(int field,
                                       int mask)
field - the bit field.mask - the bit mask of the value in the int.public static int unsetBooleanPropertyAtOffset(int field,
                                               int offset)
field - the bit field.offset - the offset of the boolean in the int.