Package org.apache.pivot.util
Class CalendarDate.Range
- java.lang.Object
-
- org.apache.pivot.util.CalendarDate.Range
-
- Enclosing class:
- CalendarDate
public static final class CalendarDate.Range extends java.lang.Object
Represents a range of calendar dates.
-
-
Field Summary
Fields Modifier and Type Field Description CalendarDate
end
static java.lang.String
END_KEY
CalendarDate
start
static java.lang.String
START_KEY
-
Constructor Summary
Constructors Constructor Description Range(java.lang.String date)
Range(java.lang.String start, java.lang.String end)
Range(Dictionary<java.lang.String,?> range)
Range(Sequence<?> range)
Range(CalendarDate calendarDate)
Range(CalendarDate.Range range)
Range(CalendarDate start, CalendarDate end)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(CalendarDate calendarDate)
boolean
contains(CalendarDate.Range range)
static CalendarDate.Range
decode(java.lang.String value)
boolean
equals(java.lang.Object o)
int
getLength()
int
hashCode()
boolean
intersects(CalendarDate.Range range)
CalendarDate.Range
normalize()
-
-
-
Field Detail
-
START_KEY
public static final java.lang.String START_KEY
- See Also:
- Constant Field Values
-
END_KEY
public static final java.lang.String END_KEY
- See Also:
- Constant Field Values
-
start
public final CalendarDate start
-
end
public final CalendarDate end
-
-
Constructor Detail
-
Range
public Range(CalendarDate calendarDate)
-
Range
public Range(CalendarDate start, CalendarDate end)
-
Range
public Range(java.lang.String date)
-
Range
public Range(java.lang.String start, java.lang.String end)
-
Range
public Range(CalendarDate.Range range)
-
Range
public Range(Dictionary<java.lang.String,?> range)
-
Range
public Range(Sequence<?> range)
-
-
Method Detail
-
getLength
public int getLength()
-
contains
public boolean contains(CalendarDate.Range range)
-
contains
public boolean contains(CalendarDate calendarDate)
-
intersects
public boolean intersects(CalendarDate.Range range)
-
normalize
public CalendarDate.Range normalize()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
decode
public static CalendarDate.Range decode(java.lang.String value)
-
-