public class DateInterval
A potentially open date range. If both from and to are null, then the interval accepts any date.
| Constructor and Description |
|---|
DateInterval(java.time.LocalDateTime from,
java.time.LocalDateTime to)
A potentially open date range. If both from and to are
null, then the interval accepts any date. |
| Modifier and Type | Method and Description |
|---|---|
java.time.LocalDateTime |
component1()
the minimum accepted value,
|
java.time.LocalDateTime |
component2()
the maximum accepted value,
|
DateInterval |
copy(java.time.LocalDateTime from,
java.time.LocalDateTime to)
A potentially open date range. If both from and to are
null, then the interval accepts any date. |
boolean |
equals(java.lang.Object p) |
java.time.LocalDateTime |
getFrom()
the minimum accepted value,
|
java.time.LocalDateTime |
getTo()
the maximum accepted value,
|
int |
hashCode() |
boolean |
isUniversalSet()
True if the interval includes all possible numbers (both from and to are
null). |
void |
setFrom(java.time.LocalDateTime p)
the minimum accepted value,
|
void |
setTo(java.time.LocalDateTime p)
the maximum accepted value,
|
<F> F |
toFilter(java.lang.String propertyName,
eu.vaadinonkotlin.FilterFactory<F> filterFactory,
java.lang.Class<?> fieldType) |
java.lang.String |
toString() |
public DateInterval(java.time.LocalDateTime from,
java.time.LocalDateTime to)
A potentially open date range. If both from and to are null, then the interval accepts any date.
from - the minimum accepted value, inclusive. If null then the date range has no lower limit.to - the maximum accepted value, inclusive. If null then the date range has no upper limit.public boolean isUniversalSet()
True if the interval includes all possible numbers (both from and to are null).
public <F> F toFilter(java.lang.String propertyName,
eu.vaadinonkotlin.FilterFactory<F> filterFactory,
java.lang.Class<?> fieldType)
public java.time.LocalDateTime getFrom()
the minimum accepted value,
inclusive. If null then the date range has no lower limit.
public void setFrom(java.time.LocalDateTime p)
the minimum accepted value,
inclusive. If null then the date range has no lower limit.
p - the minimum accepted value, inclusive. If null then the date range has no lower limit.public java.time.LocalDateTime getTo()
the maximum accepted value,
inclusive. If null then the date range has no upper limit.
public void setTo(java.time.LocalDateTime p)
the maximum accepted value,
inclusive. If null then the date range has no upper limit.
p - the maximum accepted value, inclusive. If null then the date range has no upper limit.public java.time.LocalDateTime component1()
the minimum accepted value,
inclusive. If null then the date range has no lower limit.
public java.time.LocalDateTime component2()
the maximum accepted value,
inclusive. If null then the date range has no upper limit.
public DateInterval copy(java.time.LocalDateTime from, java.time.LocalDateTime to)
A potentially open date range. If both from and to are null, then the interval accepts any date.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)