Class ResourceRange


  • public final class ResourceRange
    extends Object
    Describes the resource range.
    • Constructor Detail

      • ResourceRange

        public ResourceRange()
    • Method Detail

      • min

        public Integer min()
        Get the min property: The minimum number of the resource.
        Returns:
        the min value.
      • withMin

        public ResourceRange withMin​(Integer min)
        Set the min property: The minimum number of the resource.
        Parameters:
        min - the min value to set.
        Returns:
        the ResourceRange object itself.
      • max

        public Integer max()
        Get the max property: The maximum number of the resource.
        Returns:
        the max value.
      • withMax

        public ResourceRange withMax​(Integer max)
        Set the max property: The maximum number of the resource.
        Parameters:
        max - the max value to set.
        Returns:
        the ResourceRange object itself.
      • validate

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