|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.service.calendar.TemporalExpression
org.ofbiz.service.calendar.TemporalExpressions.Intersection
public static class TemporalExpressions.Intersection
This class represents a mathematical intersection of all of its member expressions.
| Field Summary | |
|---|---|
protected java.util.Set<TemporalExpression> |
expressionSet
|
| Fields inherited from class org.ofbiz.service.calendar.TemporalExpression |
|---|
id, sequence, subSequence |
| Constructor Summary | |
|---|---|
TemporalExpressions.Intersection(java.util.Set<TemporalExpression> expressionSet)
|
|
| Method Summary | |
|---|---|
void |
accept(TemporalExpressionVisitor visitor)
Handles a TemporalExpressionVisitor visit. |
protected boolean |
containsExpression(TemporalExpression expression)
|
boolean |
equals(java.lang.Object obj)
|
java.util.Calendar |
first(java.util.Calendar cal)
Returns a date representing the first occurrence of this expression on or after a specified date. |
java.util.Set<TemporalExpression> |
getExpressionSet()
Returns the member expression Set. |
java.util.Set<java.util.Date> |
getRange(DateRange range,
java.util.Calendar cal)
Returns a range of dates matching this expression. |
boolean |
includesDate(java.util.Calendar cal)
Returns true if this expression includes the specified date. |
java.util.Calendar |
next(java.util.Calendar cal)
Returns a date representing the next occurrence of this expression after a specified date. |
java.lang.String |
toString()
|
| Methods inherited from class org.ofbiz.service.calendar.TemporalExpression |
|---|
compareTo, getId, setId, setStartOfDay |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.Set<TemporalExpression> expressionSet
| Constructor Detail |
|---|
public TemporalExpressions.Intersection(java.util.Set<TemporalExpression> expressionSet)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean includesDate(java.util.Calendar cal)
TemporalExpression
includesDate in class TemporalExpressioncal - A date to evaluate
calpublic java.util.Calendar first(java.util.Calendar cal)
TemporalExpressionnull if there
is no matching date.
first in class TemporalExpressioncal - A date to evaluate
null if no matching date is foundpublic java.util.Calendar next(java.util.Calendar cal)
TemporalExpressionnull if there
is no matching date.
next in class TemporalExpressioncal - A date to evaluate
null if no matching date is foundpublic void accept(TemporalExpressionVisitor visitor)
TemporalExpressionTemporalExpressionVisitor visit.
accept in class TemporalExpression
public java.util.Set<java.util.Date> getRange(DateRange range,
java.util.Calendar cal)
TemporalExpression
getRange in class TemporalExpressionrange - The range of dates to evaluatecal - The starting date
Date objectspublic java.util.Set<TemporalExpression> getExpressionSet()
Set. The
returned set is unmodifiable.
Setprotected boolean containsExpression(TemporalExpression expression)
containsExpression in class TemporalExpression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||