public final class NumberConversions extends Object
Modifier and Type | Method | Description |
---|---|---|
static int |
ceil(double num) |
|
static void |
checkFinite(double d,
String message) |
|
static void |
checkFinite(float d,
String message) |
|
static int |
floor(double num) |
|
static boolean |
isFinite(double d) |
|
static boolean |
isFinite(float f) |
|
static int |
round(double num) |
|
static double |
square(double num) |
|
static byte |
toByte(Object object) |
|
static double |
toDouble(Object object) |
|
static float |
toFloat(Object object) |
|
static int |
toInt(Object object) |
|
static long |
toLong(Object object) |
|
static short |
toShort(Object object) |
public static int floor(double num)
public static int ceil(double num)
public static int round(double num)
public static double square(double num)
public static int toInt(@Nullable Object object)
public static float toFloat(@Nullable Object object)
public static double toDouble(@Nullable Object object)
public static long toLong(@Nullable Object object)
public static short toShort(@Nullable Object object)
public static byte toByte(@Nullable Object object)
public static boolean isFinite(double d)
public static boolean isFinite(float f)
public static void checkFinite(double d, @NotNull String message)
public static void checkFinite(float d, @NotNull String message)
Copyright © 2019. All rights reserved.