public static class DateRangeFilter.UpperBoundedValue extends Object
| Modifier and Type | Field and Description |
|---|---|
static DateRangeFilter.UpperBoundedValue |
ONE_MONTH_OFFSET |
| Constructor and Description |
|---|
UpperBoundedValue(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
daysBetween(Calendar c1,
Calendar c2) |
Calendar |
getCalendar(Calendar start)
Get the value of this instance.
|
int |
getOffset()
Get the original offset if the DateRangeFilter is not of type
DateRangeType.RANGE |
Calendar |
getOffset(Calendar start,
int offset)
Get the offset
Calendar from the specified start date and offset. |
DateRangeFilter.DateRangeType |
getType()
Get the type of this instance
|
String |
value()
Get the value of this instance.
|
public static DateRangeFilter.UpperBoundedValue ONE_MONTH_OFFSET
public UpperBoundedValue(String value) throws InvalidDateException
InvalidDateExceptionpublic DateRangeFilter.DateRangeType getType()
public String value()
public int getOffset()
DateRangeType.RANGEpublic Calendar getCalendar(Calendar start)
RANGE type, the method returns the client
specification value, otherwise, it computes the value base on the client offset specification.start - the start datepublic Calendar getOffset(Calendar start, int offset)
Calendar from the specified start date and offset.start - the calendar which we apply the offset tooffset - the offset, which can be positive or negative integer."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"