public final class HourInterval extends Object
| Constructor and Description |
|---|
HourInterval()
Default.
|
HourInterval(Calendar froms,
Calendar tos)
Initialize component.
|
HourInterval(Date froms,
Date tos)
Initialize component.
|
HourInterval(String expression)
Initialization through init param structure : HH:MM-HH:MM
|
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'.
|
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'.
|
public HourInterval()
public HourInterval(String expression)
expression - expression to be parsedpublic 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 datepublic 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–2017 FF4J. All rights reserved.