com.atlassian.confluence.search.v2.query
Class DateRangeQuery.DateRange

java.lang.Object
  extended by com.atlassian.confluence.search.v2.query.DateRangeQuery.DateRange
Enclosing class:
DateRangeQuery

public static class DateRangeQuery.DateRange
extends java.lang.Object

Class to represent a date range. Inclusion/exclusion of bounds is settable. Immutable.


Constructor Summary
DateRangeQuery.DateRange(java.util.Date from, java.util.Date to, boolean includeFrom, boolean includeTo)
          Construct a DateRange object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Date getFrom()
           
 java.util.Date getTo()
           
 int hashCode()
           
 boolean isIncludeFrom()
           
 boolean isIncludeTo()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateRangeQuery.DateRange

public DateRangeQuery.DateRange(@Nullable
                                java.util.Date from,
                                @Nullable
                                java.util.Date to,
                                boolean includeFrom,
                                boolean includeTo)
Construct a DateRange object.

Parameters:
from - The date from which this date range begins (can be null)
to - The date on which this date range ends (can be null)
includeFrom - Whether or not the "from date" is inclusive
includeTo - Whether or not the "to date" is inclusive
Method Detail

getFrom

public java.util.Date getFrom()

getTo

public java.util.Date getTo()

isIncludeFrom

public boolean isIncludeFrom()

isIncludeTo

public boolean isIncludeTo()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.