public final class Masks extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
addOperand(int mask,
int operand) |
static boolean |
containsOperand(int mask,
int operand)
判断 mask 是否包含 指定的操作数 operand
|
static int |
createMask(Collection<Integer> operands) |
static <T> int |
createMask(Collection<T> operandHolders,
Function<T,Integer> mapper) |
static int |
createMask(int... operands) |
static int |
removeOperand(int mask,
int operand) |
public static <T> int createMask(Collection<T> operandHolders, Function<T,Integer> mapper)
public static int createMask(int... operands)
public static int createMask(Collection<Integer> operands)
operands - 操作数集合public static int addOperand(int mask,
int operand)
public static int removeOperand(int mask,
int operand)
public static boolean containsOperand(int mask,
int operand)
mask - 掩码operand - 操作数Copyright © 2021. All rights reserved.