public class BitStatusUtil extends Object
Constructor and Description |
---|
BitStatusUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
add(int states,
int stat)
增加状态
|
static int |
clear()
清空状态就是0
|
static boolean |
has(int states,
int stat)
判断是否含有状态
|
static int |
remove(int states,
int stat)
删除一个状态
|
public static int add(int states, int stat)
states
- 原状态stat
- 要添加的状态public static boolean has(int states, int stat)
states
- 原状态stat
- 要判断的状态public static int remove(int states, int stat)
states
- 原状态stat
- 要删除的状态public static int clear()
Copyright © 2024. All rights reserved.