public static enum AllocationParameters.RoundingMethod extends java.lang.Enum<AllocationParameters.RoundingMethod>
Enum Constant and Description |
---|
DISCARD_ERRORS
Perform rounding, but discard rounding errors.
|
ERRORS_TO_HIGHEST
Rounding errors are added to the highest allocated value.
|
ERRORS_TO_LOCATION
Rounding errors are added to a specific location.
|
ERRORS_TO_LOWEST
Rounding errors are added to the lowest allocated value.
|
NONE
No rounding performed.
|
Modifier and Type | Method and Description |
---|---|
long |
getValue()
value of the object.
|
static AllocationParameters.RoundingMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AllocationParameters.RoundingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllocationParameters.RoundingMethod DISCARD_ERRORS
public static final AllocationParameters.RoundingMethod ERRORS_TO_HIGHEST
public static final AllocationParameters.RoundingMethod ERRORS_TO_LOCATION
public static final AllocationParameters.RoundingMethod ERRORS_TO_LOWEST
public static final AllocationParameters.RoundingMethod NONE
public long getValue()
public static AllocationParameters.RoundingMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static AllocationParameters.RoundingMethod[] values()
for (AllocationParameters.RoundingMethod c : AllocationParameters.RoundingMethod.values()) System.out.println(c);
Copyright © 2017, 2024, Oracle and/or its affiliates. All rights reserved.