public class Maths extends Object
| 构造器和说明 |
|---|
Maths() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
abs(int value) |
static boolean |
isOutOfBounds(int index,
int length,
int capacity)
Determine if the requested
index and length will fit within capacity. |
static double |
max(double... array) |
static double |
max(double a,
double b) |
static float |
max(float... array) |
static float |
max(float a,
float b) |
static int |
max(int... array) |
static int |
max(int a,
int b) |
static long |
max(long... array) |
static long |
max(long a,
long b) |
static double |
min(Double... array) |
static double |
min(double a,
double b) |
static float |
min(float... array) |
static float |
min(float a,
float b) |
static int |
min(int... array) |
static int |
min(int a,
int b) |
static long |
min(Long... array) |
static long |
min(long a,
long b) |
static double |
sum(double a,
double b) |
static float |
sum(float a,
float b) |
static int |
sum(int a,
int b) |
static long |
sum(long a,
long b) |
public static int max(int a,
int b)
public static float max(float a,
float b)
public static long max(long a,
long b)
public static double max(double a,
double b)
public static int max(int... array)
public static float max(float... array)
public static long max(long... array)
public static double max(double... array)
public static int min(int a,
int b)
public static float min(float a,
float b)
public static long min(long a,
long b)
public static double min(double a,
double b)
public static int min(int... array)
public static float min(float... array)
public static long min(Long... array)
public static double min(Double... array)
public static boolean isOutOfBounds(int index,
int length,
int capacity)
index and length will fit within capacity.index - The starting index.length - The length which will be utilized (starting from index).capacity - The capacity that index + length is allowed to be within.true if the requested index and length will fit within capacity.
false if this would result in an index out of bounds exception.public static int abs(int value)
public static int sum(int a,
int b)
public static float sum(float a,
float b)
public static long sum(long a,
long b)
public static double sum(double a,
double b)
Copyright © 2019. All rights reserved.