org.ofbiz.service.calendar
Class TemporalExpressions.Null
java.lang.Object
org.ofbiz.service.calendar.TemporalExpression
org.ofbiz.service.calendar.TemporalExpressions.Null
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TemporalExpression>
- Enclosing class:
- TemporalExpressions
public static class TemporalExpressions.Null
- extends TemporalExpression
This class represents a null expression.
- See Also:
- Serialized Form
Method Summary |
void |
accept(TemporalExpressionVisitor visitor)
Handles a TemporalExpressionVisitor visit. |
java.util.Calendar |
first(java.util.Calendar cal)
Returns a date representing the first occurrence of this expression
on or after a specified date. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemporalExpressions.Null
public TemporalExpressions.Null()
first
public java.util.Calendar first(java.util.Calendar cal)
- Description copied from class:
TemporalExpression
- Returns a date representing the first occurrence of this expression
on or after a specified date. Returns
null
if there
is no matching date.
- Specified by:
first
in class TemporalExpression
- Parameters:
cal
- A date to evaluate
- Returns:
- A Calendar instance representing the first matching date,
or
null
if no matching date is found
includesDate
public boolean includesDate(java.util.Calendar cal)
- Description copied from class:
TemporalExpression
- Returns true if this expression includes the specified date.
- Specified by:
includesDate
in class TemporalExpression
- Parameters:
cal
- A date to evaluate
- Returns:
- true if this expression includes the date represented by
cal
next
public java.util.Calendar next(java.util.Calendar cal)
- Description copied from class:
TemporalExpression
- Returns a date representing the next occurrence of this expression
after a specified date. Returns
null
if there
is no matching date.
- Specified by:
next
in class TemporalExpression
- Parameters:
cal
- A date to evaluate
- Returns:
- A Calendar instance representing the first matching date,
or
null
if no matching date is found
accept
public void accept(TemporalExpressionVisitor visitor)
- Description copied from class:
TemporalExpression
- Handles a
TemporalExpressionVisitor
visit.
- Specified by:
accept
in class TemporalExpression