public final class Bitfield extends Object
| Constructor and Description |
|---|
Bitfield() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
clear(byte bit,
byte bitfield) |
static int |
clear(int bit,
int bitfield) |
static long |
clear(long bit,
long bitfield) |
static short |
clear(short bit,
short bitfield) |
static byte |
embed(byte value,
byte bitmask,
int shift,
int valueMaxBitLength,
byte bitfield) |
static int |
embed(int value,
int bitmask,
int shift,
int valueMaxBitLength,
int bitfield) |
static long |
embed(long value,
long bitmask,
int shift,
int valueMaxBitLength,
long bitfield) |
static short |
embed(short value,
short bitmask,
int shift,
int valueMaxBitLength,
short bitfield) |
static byte |
extract(byte mask,
int shift,
byte bitfield) |
static int |
extract(int mask,
int shift,
int bitfield) |
static long |
extract(long mask,
int shift,
long bitfield) |
static short |
extract(short mask,
int shift,
short bitfield) |
static int |
getMaskFor(int startBit,
int numBits) |
static boolean |
isSet(byte bit,
byte bitfield) |
static boolean |
isSet(int bit,
int bitfield) |
static boolean |
isSet(long bit,
long bitfield) |
static boolean |
isSet(short bit,
short bitfield) |
static byte |
set(byte bit,
byte bitfield) |
static int |
set(int bit,
int bitfield) |
static long |
set(long bit,
long bitfield) |
static short |
set(short bit,
short bitfield) |
static byte |
toggle(byte bit,
byte bitfield) |
static int |
toggle(int bit,
int bitfield) |
static long |
toggle(long bit,
long bitfield) |
static short |
toggle(short bit,
short bitfield) |
public static boolean isSet(long bit,
long bitfield)
public static boolean isSet(int bit,
int bitfield)
public static boolean isSet(short bit,
short bitfield)
public static boolean isSet(byte bit,
byte bitfield)
public static long set(long bit,
long bitfield)
public static int set(int bit,
int bitfield)
public static short set(short bit,
short bitfield)
public static byte set(byte bit,
byte bitfield)
public static long clear(long bit,
long bitfield)
public static int clear(int bit,
int bitfield)
public static short clear(short bit,
short bitfield)
public static byte clear(byte bit,
byte bitfield)
public static long toggle(long bit,
long bitfield)
public static int toggle(int bit,
int bitfield)
public static short toggle(short bit,
short bitfield)
public static byte toggle(byte bit,
byte bitfield)
public static long extract(long mask,
int shift,
long bitfield)
public static int extract(int mask,
int shift,
int bitfield)
public static short extract(short mask,
int shift,
short bitfield)
public static byte extract(byte mask,
int shift,
byte bitfield)
public static long embed(long value,
long bitmask,
int shift,
int valueMaxBitLength,
long bitfield)
public static int embed(int value,
int bitmask,
int shift,
int valueMaxBitLength,
int bitfield)
public static short embed(short value,
short bitmask,
int shift,
int valueMaxBitLength,
short bitfield)
public static byte embed(byte value,
byte bitmask,
int shift,
int valueMaxBitLength,
byte bitfield)
public static int getMaskFor(int startBit,
int numBits)
Copyright © 2022. All rights reserved.