Interface XTimeBounds

  • All Known Implementing Classes:
    XTimeBoundsImpl

    public interface XTimeBounds
    Author:
    Christian W. Guenther (christian@deckfour.org)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Date getEndDate()
      Returns the latest timestamp of these boundaries (right bound).
      java.util.Date getStartDate()
      Returns the earliest timestamp of these boundaries (left bound).
      boolean isWithin​(java.util.Date date)
      Checks, whether the given date is within these boundaries.
      java.lang.String toString()
      Returns a string representation of these boundaries.
    • Method Detail

      • getStartDate

        java.util.Date getStartDate()
        Returns the earliest timestamp of these boundaries (left bound).
        Returns:
        The earliest timestamp of these boundaries.
      • getEndDate

        java.util.Date getEndDate()
        Returns the latest timestamp of these boundaries (right bound).
        Returns:
        The latest timestamp of these boundaries.
      • isWithin

        boolean isWithin​(java.util.Date date)
        Checks, whether the given date is within these boundaries.
        Parameters:
        date - Date to be checked.
        Returns:
        Whether the specified date is within these boundaries.
      • toString

        java.lang.String toString()
        Returns a string representation of these boundaries.
        Overrides:
        toString in class java.lang.Object