com.alibaba.excel.util
类 IntUtils
- java.lang.Object
-
- com.alibaba.excel.util.IntUtils
public class IntUtils extends Object
Int utils- 作者:
- Jiaju Zhuang
-
字段概要
字段 限定符和类型 字段和说明 static int
MAX_POWER_OF_TWO
The largest power of two that can be represented as anint
.
-
字段详细资料
MAX_POWER_OF_TWO
public static final int MAX_POWER_OF_TWO
The largest power of two that can be represented as anint
.- 从以下版本开始:
- 10.0
- 另请参阅:
- 常量字段值
方法详细资料
saturatedCast
public static int saturatedCast(long value)
Returns theint
nearest in value tovalue
.- 参数:
-
value
- anylong
value - 返回:
-
the same value cast to
int
if it is in the range of theint
type,Integer.MAX_VALUE
if it is too large, orInteger.MIN_VALUE
if it is too small
Copyright © 2018–2021 Alibaba Group. All rights reserved.