public class BitUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
getBit(byte value,
int bitIndex) |
static boolean |
getBit(int value,
int bitIndex) |
static boolean |
getBit(long value,
int bitIndex) |
static boolean |
getBit(short value,
int bitIndex) |
static int |
getBits(long value,
int bitIndex,
int bitCnt) |
static byte |
setBit(byte value,
int bitIndex,
boolean bitVal) |
static int |
setBit(int value,
int bitIndex,
boolean bitVal) |
static long |
setBit(long value,
int bitIndex,
boolean bitVal) |
static short |
setBit(short value,
int bitIndex,
boolean bitVal) |
static byte |
setBits(byte value,
int bitIndex,
int bitCnt,
int bitsVal) |
static int |
setBits(int value,
int bitIndex,
int bitCnt,
int bitsVal) |
static long |
setBits(long value,
int bitIndex,
int bitCnt,
int bitVal) |
static short |
setBits(short value,
int bitIndex,
int bitCnt,
int bitsVal) |
public static boolean getBit(long value,
int bitIndex)
public static long setBit(long value,
int bitIndex,
boolean bitVal)
public static boolean getBit(int value,
int bitIndex)
public static int setBit(int value,
int bitIndex,
boolean bitVal)
public static boolean getBit(short value,
int bitIndex)
public static short setBit(short value,
int bitIndex,
boolean bitVal)
public static boolean getBit(byte value,
int bitIndex)
public static byte setBit(byte value,
int bitIndex,
boolean bitVal)
public static int getBits(long value,
int bitIndex,
int bitCnt)
public static long setBits(long value,
int bitIndex,
int bitCnt,
int bitVal)
public static int setBits(int value,
int bitIndex,
int bitCnt,
int bitsVal)
public static byte setBits(byte value,
int bitIndex,
int bitCnt,
int bitsVal)
public static short setBits(short value,
int bitIndex,
int bitCnt,
int bitsVal)
Copyright © 2022. All rights reserved.