Class DateInterval

    • Constructor Detail

      • DateInterval

        public DateInterval​(java.util.Date left,
                            java.util.Date right,
                            java.lang.Integer step,
                            DateUnit unit)
      • DateInterval

        public DateInterval​(java.util.Date left,
                            java.util.Date right,
                            int iStep,
                            DateUnit unit,
                            boolean bLeftClosed,
                            boolean bRightClosed,
                            boolean bReverse)
    • Method Detail

      • iterateFromRight

        public java.util.Iterator<java.util.Date> iterateFromRight()
        Returns:
        An iterator that visits the elements in this interval in reverse order, from right to left. Returns null if this interval does not support iteration.
        See Also:
        IIterableInterval.iterator(), IIterableInterval.iterateFromLeft()
      • add

        private java.util.Date add​(java.util.Date date)
      • add

        private java.util.Date add​(java.util.Date date,
                                   int iMultiple)
      • subtract

        private java.util.Date subtract​(java.util.Date date)
      • subtract

        private java.util.Date subtract​(java.util.Date date,
                                        int iMultiple)
      • getFromLeft

        public java.util.Date getFromLeft​(int iStepIndex)
        Parameters:
        iStepIndex - The index of the step from the left endpoint
        Returns:
        The nth step from the left endpoint. Returns null if iStepIndex is out of bounds.
      • getFromRight

        public java.util.Date getFromRight​(int iStepIndex)
        Parameters:
        iStepIndex - The index of the step from the right endpoint
        Returns:
        The nth step from the right endpoint. Returns null if iStepIndex is out of bounds.