Class PercentOrAbsolute

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.57.0 (build f614666)",
               date="2022-04-26T09:02:10.515Z")
    @Stability(Stable)
    public class PercentOrAbsolute
    extends software.amazon.jsii.JsiiObject
    Union like class repsenting either a ration in percents or an absolute number.
    • Constructor Detail

      • PercentOrAbsolute

        protected PercentOrAbsolute​(software.amazon.jsii.JsiiObjectRef objRef)
      • PercentOrAbsolute

        protected PercentOrAbsolute​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • 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()