Deprecated
We can no longer use DateRange to compare dates reliably due to supporting incompatible temporal types.
Use org. instead.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | INCLUSIVE_END
A flag indicating whether to include the end of the period in test functions. |
| public static final int | INCLUSIVE_START
A flag indicating whether to include the start of the period in test functions. |
| private final Date | |
| private final Date | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: true if one period immediately follows the other, false otherwisea period to test for adjacency range)
References Deprecated
DateRange is deprecated or references (maybe indirectly) at least one deprecated element.
Decides whether these periods are serial without a gap. |
| public final boolean | Returns: true if the specified period end before this periods starts, otherwise falsea period that may or may not end before this period starts range)
References Deprecated
DateRange is deprecated or references (maybe indirectly) at least one deprecated element.
Decides whether this period starts after the given period ends. |
| public final boolean | Returns: true if the specified period starts after this periods ends, otherwise falsea period that may or may not start after this period ends range)
References Deprecated
DateRange is deprecated or references (maybe indirectly) at least one deprecated element.
Decides whether this period is completed before the given period starts. |
| public final boolean | Returns: true if this period covers all the dates of the specified period, otherwise falsethe period that may be contained by this one range)
References Deprecated
DateRange is deprecated or references (maybe indirectly) at least one deprecated element.
Decides whether the given period is completely contained within this one. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Date | |
| public Date | |
| public int | |
| public final boolean | |
| public final boolean | |
| public final boolean | Returns: true if the specified period intersects this one, false otherwise.a possible intersecting period range)
References Deprecated
DateRange is deprecated or references (maybe indirectly) at least one deprecated element.
Decides whether this period intersects with another one. |
| INCLUSIVE_END | back to summary |
|---|---|
| public static final int INCLUSIVE_END A flag indicating whether to include the end of the period in test functions. | |
| INCLUSIVE_START | back to summary |
|---|---|
| public static final int INCLUSIVE_START A flag indicating whether to include the start of the period in test functions. | |
| rangeEnd | back to summary |
|---|---|
| private final Date rangeEnd | |
| rangeStart | back to summary |
|---|---|
| private final Date rangeStart | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DateRange | back to summary |
|---|---|
| public DateRange(Date start, Date end) | |
| adjacent | back to summary |
|---|---|
| public final boolean adjacent(final DateRange range)
References Deprecated
See corresponding docs for further information. Decides whether these periods are serial without a gap.
| |
| after | back to summary |
|---|---|
| public final boolean after(final DateRange range)
References Deprecated
See corresponding docs for further information. Decides whether this period starts after the given period ends.
| |
| before | back to summary |
|---|---|
| public final boolean before(final DateRange range)
References Deprecated
See corresponding docs for further information. Decides whether this period is completed before the given period starts.
| |
| contains | back to summary |
|---|---|
| public final boolean contains(final DateRange range)
References Deprecated
See corresponding docs for further information. Decides whether the given period is completely contained within this one.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getRangeEnd | back to summary |
|---|---|
public Date getRangeEnd()
| |
| getRangeStart | back to summary |
|---|---|
public Date getRangeStart()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| includes | back to summary |
|---|---|
| public final boolean includes(final Date date) Determines if the specified date occurs within this period (inclusive of period start and end).
| |
| includes | back to summary |
|---|---|
| public final boolean includes(final Date date, final int inclusiveMask) Decides whether a date falls within this period.
| |
| intersects | back to summary |
|---|---|
| public final boolean intersects(final DateRange range)
References Deprecated
See corresponding docs for further information. Decides whether this period intersects with another one.
| |