public enum MathUtils extends Enum<MathUtils>
Modifier and Type | Method and Description |
---|---|
static int |
mod(int v,
int m)
Return the (positive) remainder of the division of
v by mod . |
static MathUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MathUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static MathUtils[] values()
for (MathUtils c : MathUtils.values()) System.out.println(c);
public static MathUtils valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static int mod(int v, int m)
v
by mod
.Copyright © 2009–2016. All rights reserved.