Class StandardDateRange

  • All Implemented Interfaces:
    DateRange, java.io.Serializable

    public class StandardDateRange
    extends java.lang.Object
    implements DateRange, java.io.Serializable
    A simple date range implementation consisting only a start and
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DATe_FORMAT_FACTORY  
    • Constructor Summary

      Constructors 
      Constructor Description
      StandardDateRange​(java.util.Date start, java.util.Date end)
      Constructor StandardDateRange
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean encloses​(java.util.Date check)
      Method encloses
      boolean equals​(java.lang.Object object)  
      java.util.Date getEnd()
      Method getEnd
      java.util.Date getStart()
      Method getStart
      int hashCode()  
      java.lang.String toString()
      Method toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DATe_FORMAT_FACTORY

        public static final java.lang.String DATe_FORMAT_FACTORY
        See Also:
        Constant Field Values
    • Constructor Detail

      • StandardDateRange

        public StandardDateRange​(java.util.Date start,
                                 java.util.Date end)
        Constructor StandardDateRange
        Parameters:
        start -
        end -
    • Method Detail

      • getStart

        public java.util.Date getStart()
        Method getStart
      • getEnd

        public java.util.Date getEnd()
        Method getEnd
      • encloses

        public boolean encloses​(java.util.Date check)
        Method encloses
        Specified by:
        encloses in interface DateRange
        Parameters:
        check -
        Returns:
        true if the given date lies within this range
      • toString

        public java.lang.String toString()
        Method toString
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object