public static final class OfficeHourStrategy.HourInterval extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
HourInterval()
Default.
|
|
HourInterval(Calendar froms,
Calendar tos)
Initialize component.
|
|
HourInterval(Date froms,
Date tos)
Initialize component.
|
protected |
HourInterval(String expression)
Initialization through init param structure : HH:MM-HH:MM
|
protected |
HourInterval(String f,
String t)
Constructor by string expressions
|
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getFrom()
Getter accessor for attribute 'from'.
|
Calendar |
getTo()
Getter accessor for attribute 'to'.
|
protected void |
init(String f,
String t)
Initialization by dates
|
boolean |
matches()
Check bounds against current date
|
boolean |
matches(Calendar cal)
Check bounds against defined date.
|
void |
setFrom(Calendar from)
Setter accessor for attribute 'from'.
|
void |
setTo(Calendar to)
Setter accessor for attribute 'to'.
|
protected HourInterval()
protected HourInterval(String expression)
expression - expression to be parsedprotected HourInterval(String f, String t)
f - from date as HH:MMt - to date as HH:MMpublic HourInterval(Date froms, Date tos)
froms - from datetos - to dateprotected void init(String f, String t)
from - lower boundto - uppoer boundpublic boolean matches()
public boolean matches(Calendar cal)
public Calendar getFrom()
public void setFrom(Calendar from)
from - new value for 'from 'public Calendar getTo()
public void setTo(Calendar to)
to - new value for 'to 'Copyright © 2013–2015 FF4J. All rights reserved.