public static class DateRangeFilter.UpperBoundedValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DateRangeFilter.UpperBoundedValue |
ONE_MONTH_OFFSET |
Constructor and Description |
---|
UpperBoundedValue(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
int |
daysBetween(java.util.Calendar c1,
java.util.Calendar c2) |
java.util.Calendar |
getCalendar(java.util.Calendar start)
Get the value of this instance.
|
int |
getOffset()
Get the original offset if the DateRangeFilter is not of type
DateRangeType.RANGE |
java.util.Calendar |
getOffset(java.util.Calendar start,
int offset)
Get the offset
Calendar from the specified start date and offset. |
DateRangeFilter.DateRangeType |
getType()
Get the type of this instance
|
java.lang.String |
value()
Get the value of this instance.
|
public static DateRangeFilter.UpperBoundedValue ONE_MONTH_OFFSET
public UpperBoundedValue(java.lang.String value) throws InvalidDateException
InvalidDateException
public DateRangeFilter.DateRangeType getType()
public java.lang.String value()
public int getOffset()
DateRangeType.RANGE
public java.util.Calendar getCalendar(java.util.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 java.util.Calendar getOffset(java.util.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.public int daysBetween(java.util.Calendar c1, java.util.Calendar c2)
Copyright © 2010 - 2020 Adobe. All Rights Reserved