Class Dimensions


  • public final class Dimensions
    extends Object
    Dimensions of a configuration.
    • Constructor Detail

      • Dimensions

        public Dimensions()
    • Method Detail

      • length

        public Double length()
        Get the length property: Length of the device.
        Returns:
        the length value.
      • height

        public Double height()
        Get the height property: Height of the device.
        Returns:
        the height value.
      • width

        public Double width()
        Get the width property: Width of the device.
        Returns:
        the width value.
      • lengthHeightUnit

        public LengthHeightUnit lengthHeightUnit()
        Get the lengthHeightUnit property: Unit for the dimensions of length, height and width.
        Returns:
        the lengthHeightUnit value.
      • weight

        public Double weight()
        Get the weight property: Weight of the device.
        Returns:
        the weight value.
      • depth

        public Double depth()
        Get the depth property: Depth of the device.
        Returns:
        the depth value.
      • weightUnit

        public WeightMeasurementUnit weightUnit()
        Get the weightUnit property: Unit for the dimensions of weight.
        Returns:
        the weightUnit value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.