|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectorg.nutz.lang.Maths
public abstract class Maths
A group of helper functions to counting some ...
| 构造方法摘要 | |
|---|---|
Maths()
|
|
| 方法摘要 | |
|---|---|
static int |
bit(java.lang.String s)
Convert a binary string to a integer |
static int |
extract(int bs,
int low,
int high)
Get part of one integer as a new integer |
static boolean |
isMask(int bs,
int mask)
Test current bit is match the given mask at least one bit or not. |
static boolean |
isMaskAll(int bs,
int mask)
Test current bit is all match the give mask. |
static boolean |
isNoMask(int bs,
int mask)
|
static int |
max(int... nums)
Seek the maximum number from an INT array |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public Maths()
| 方法详细信息 |
|---|
public static int max(int... nums)
nums - INT array
public static int bit(java.lang.String s)
s - binary string
public static boolean isMask(int bs,
int mask)
bs - integer, bit mapmask - another bit map
public static boolean isNoMask(int bs,
int mask)
public static boolean isMaskAll(int bs,
int mask)
bs - integer, bit mapmask - another bit map
public static int extract(int bs,
int low,
int high)
bs - original integerlow - the low bit position (inclusive), 0 basehigh - the hight bit position (exclusive), 0 base
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||