Class Interval


  • public class Interval
    extends Object

    Interval

    The Interval which store start and end time of a period

    Since:
    3 /29/2019
    Version:
    1.0
    Author:
    Mahdi Razavi
    • Constructor Detail

      • Interval

        public Interval​(Instant begin,
                        Instant end)
        Instantiates a new Interval.
        Parameters:
        begin - the begin
        end - the end
      • Interval

        public Interval​(LocalDateTime begin,
                        LocalDateTime end)
        Instantiates a new Interval.
        Parameters:
        begin - the begin
        end - the end
      • Interval

        public Interval​(long begin,
                        long end)
        Instantiates a new Interval.
        Parameters:
        begin - the begin
        end - the end
    • Method Detail

      • getBegin

        public Instant getBegin()
        Gets begin.
        Returns:
        the begin
      • setBegin

        public void setBegin​(Instant begin)
        Sets begin.
        Parameters:
        begin - the begin
      • getEnd

        public Instant getEnd()
        Gets end.
        Returns:
        the end
      • setEnd

        public void setEnd​(Instant end)
        Sets end.
        Parameters:
        end - the end