@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-30T06:32:36.912Z") @Stability(value=Stable) public enum SizeRoundingBehavior extends Enum<SizeRoundingBehavior>
Enum Constant and Description |
---|
FAIL
Fail the conversion if the result is not an integer.
|
FLOOR
If the result is not an integer, round it to the closest integer less than the result.
|
NONE
Don't round.
|
Modifier and Type | Method and Description |
---|---|
static SizeRoundingBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SizeRoundingBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final SizeRoundingBehavior FAIL
@Stability(value=Stable) public static final SizeRoundingBehavior FLOOR
@Stability(value=Stable) public static final SizeRoundingBehavior NONE
Return even if the result is a fraction.
public static SizeRoundingBehavior[] values()
for (SizeRoundingBehavior c : SizeRoundingBehavior.values()) System.out.println(c);
public static SizeRoundingBehavior 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 nullCopyright © 2021. All rights reserved.