public class DateDomain extends TimeDomain
| Constructor and Description |
|---|
DateDomain()
Creates a new DateDomain instance.
|
DateDomain(Date minDate,
Date maxDate)
Creates a new DateDomain instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
assertValidTime(String value)
Reports a failure if the given value is not a valid time string.
|
protected DataValue<String> |
dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected String |
format(Date time)
Returns the string representation of the given time.
|
protected void |
initLengthRange()
Defines the initial length range for values in this domain.
|
protected boolean |
isValidTime(String value)
Returns true if the given value is a valid time string.
|
protected Stream<Date> |
timeValues(ResolverContext context)
Returns a random sequence of time values from this domain.
|
candidates, contains, getMaxDate, getMinDate, newValue, setDateRange, setExcluded, toStringisRestrictedLength, setLengthRange, setLengthRange, setLengthRangegetLength, newValue, setExcludedStringsgetExcluded, getLengthRange, getMaxLength, getTypes, isNotExcluded, setLengthRange, values, valuesEqualclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrayOf, arrayOf, arrayOf, contains, containsObject, select, selectValue, valueOfprotected DataValue<String> dataValueOf(String value)
DataValue for the given value in this domain.dataValueOf in class AbstractStringDomainprotected void initLengthRange()
initLengthRange in class SequenceDomain<String>protected Stream<Date> timeValues(ResolverContext context)
timeValues in class TimeDomainprotected String assertValidTime(String value)
assertValidTime in class TimeDomainprotected boolean isValidTime(String value)
isValidTime in class TimeDomainprotected String format(Date time)
format in class TimeDomainCopyright © 2020 The Cornutum Project. All rights reserved.