Class Range


  • public class Range
    extends Object
    class represents a range
    Since:
    1.0.0
    • Constructor Detail

      • Range

        public Range​(int start,
                     int end)
        constructor
        Parameters:
        start - Start value
        end - End value
    • Method Detail

      • contains

        public boolean contains​(int value)
        returns true if a given value is contained in range
        Parameters:
        value - the value
        Returns:
        boolean true if value is contained in range, else false