public class CastUtils
extends java.lang.Object
| Constructor and Description |
|---|
CastUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
l2i(long l)
Casts a long to an int.
|
public static int l2i(long l)
Integer.MAX_VALUE this cast-method will throw
a RuntimeException if the cast would cause a loss of information.l - the long valueCopyright © 2020. All rights reserved.