Class MaxSizeCapability


  • public final class MaxSizeCapability
    extends Object
    The maximum size capability.
    • Constructor Detail

      • MaxSizeCapability

        public MaxSizeCapability()
    • Method Detail

      • limit

        public Integer limit()
        Get the limit property: The maximum size limit (see 'unit' for the units).
        Returns:
        the limit value.
      • unit

        public MaxSizeUnit unit()
        Get the unit property: The units that the limit is expressed in.
        Returns:
        the unit value.
      • validate

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