Class IntegerList.IntegerSegment

  • Enclosing class:
    IntegerList

    public class IntegerList.IntegerSegment
    extends Object
    This class describes a integers' segment.
    Version:
    17.0 2020-01-04 14:41:38
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    util
    • Constructor Detail

      • IntegerSegment

        IntegerSegment​(int first,
                       int last)
        Construct a segment.
        Parameters:
        first - first value.
        last - last value.
    • Method Detail

      • getFirst

        public int getFirst()
        Replies the first value in the segment.
        Returns:
        the first value.
      • getLast

        public int getLast()
        Replies the last value in the segment.
        Returns:
        the last value.