@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:44.848Z") @Stability(value=Experimental) public enum SizeRoundingBehavior extends Enum<SizeRoundingBehavior>
| Enum Constant and Description |
|---|
FAIL
(experimental) Fail the conversion if the result is not an integer.
|
FLOOR
(experimental) If the result is not an integer, round it to the closest integer less than the result.
|
NONE
(experimental) 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=Experimental) public static final SizeRoundingBehavior FAIL
@Stability(value=Experimental) public static final SizeRoundingBehavior FLOOR
@Stability(value=Experimental) 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.