public enum NearestMode extends Enum<NearestMode>
Enum Constant and Description |
---|
CEIL |
FLOOR |
ROUND_PREFER_CEIL |
ROUND_PREFER_FLOOR |
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
static NearestMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NearestMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NearestMode FLOOR
public static final NearestMode ROUND_PREFER_FLOOR
public static final NearestMode ROUND_PREFER_CEIL
public static final NearestMode CEIL
public static NearestMode[] values()
for (NearestMode c : NearestMode.values()) System.out.println(c);
public static NearestMode 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 int getIndex()
Copyright © 2022. All rights reserved.