com.atlassian.confluence.search.v2.query
Class DateRangeQuery.DateRange
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 inclusiveincludeTo
- Whether or not the "to date" is inclusive
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.