Package org.cdk8s.plus24
Class PercentOrAbsolute
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.PercentOrAbsolute
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-11-24T11:18:28.484Z") @Stability(Stable) public class PercentOrAbsolute extends software.amazon.jsii.JsiiObject
Union like class repsenting either a ration in percents or an absolute number.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PercentOrAbsolute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
PercentOrAbsolute(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PercentOrAbsolute
absolute(Number num)
Absolute number.Object
getValue()
Boolean
isZero()
static PercentOrAbsolute
percent(Number percent)
Percent ratio.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
absolute
@Stability(Stable) @NotNull public static PercentOrAbsolute absolute(@NotNull Number num)
Absolute number.- Parameters:
num
- This parameter is required.
-
percent
@Stability(Stable) @NotNull public static PercentOrAbsolute percent(@NotNull Number percent)
Percent ratio.- Parameters:
percent
- This parameter is required.
-
isZero
@Stability(Stable) @NotNull public Boolean isZero()
-
getValue
@Stability(Stable) @NotNull public Object getValue()
-
-