public class BitUtil extends Object
| Constructor and Description |
|---|
BitUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
flipBit(byte bitset,
int index) |
static int |
flipBit(int bitset,
int index) |
static long |
flipBit(long bitset,
int index) |
static short |
flipBit(short bitset,
int index) |
static boolean |
getBit(long bitset,
int index) |
static byte |
setBit(byte bitset,
int index,
boolean value) |
static int |
setBit(int bitset,
int index,
boolean value) |
static long |
setBit(long bitset,
int index,
boolean value) |
static short |
setBit(short bitset,
int index,
boolean value) |
public static boolean getBit(long bitset,
int index)
public static byte setBit(byte bitset,
int index,
boolean value)
public static short setBit(short bitset,
int index,
boolean value)
public static int setBit(int bitset,
int index,
boolean value)
public static long setBit(long bitset,
int index,
boolean value)
public static byte flipBit(byte bitset,
int index)
public static short flipBit(short bitset,
int index)
public static int flipBit(int bitset,
int index)
public static long flipBit(long bitset,
int index)
Copyright © 2018–2019. All rights reserved.