Class CSSSimpleValueWithUnit


  • @NotThreadSafe
    public class CSSSimpleValueWithUnit
    extends Object
    This class encapsulates a single numeric value and a unit (ECSSUnit).
    Author:
    Philip Helger
    • Constructor Detail

      • CSSSimpleValueWithUnit

        public CSSSimpleValueWithUnit​(@Nonnull
                                      BigDecimal aValue,
                                      @Nonnull
                                      ECSSUnit eUnit)
        Constructor
        Parameters:
        aValue - Numeric value. May not be null.
        eUnit - CSS unit to use. May not be null.
      • CSSSimpleValueWithUnit

        public CSSSimpleValueWithUnit​(double dValue,
                                      @Nonnull
                                      ECSSUnit eUnit)
        Constructor
        Parameters:
        dValue - Numeric value
        eUnit - CSS unit to use. May not be null.