Package rife.bld.extension.propertyfile
Class EntryDate
Declares the modifications to be made to a
Date-based property
.- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnow()
Sets the newproperty
value to now.Sets theDateTimeFormatter
pattern.set
(LocalDateTime date) Sets the newproperty
value to aLocalDateTime
set
(ZonedDateTime date) Sets the newproperty
value to aZonedDateTime
unit()
Returns theunit
.unit
(EntryDate.Units unit)
-
Constructor Details
-
EntryDate
Creates a newentry
.- Parameters:
key
- the required property key
-
-
Method Details
-
now
Sets the newproperty
value to now.- Returns:
- this instance
-
pattern
Sets theDateTimeFormatter
pattern.- Parameters:
pattern
- the pattern
-
set
- Parameters:
instant
- theInstant
to set the value to- Returns:
- this instance
-
set
- Parameters:
date
- theLocalDate
to set the value to- Returns:
- this instance
-
set
Sets the newproperty
value to aLocalDateTime
- Parameters:
date
- theLocalDateTime
to set the value to- Returns:
- this instance
-
set
Sets the newproperty
value to aZonedDateTime
- Parameters:
date
- theZonedDateTime
to set the value to- Returns:
- this instance
-
set
- Parameters:
time
- theLocalTime
to set the value to- Returns:
- this instance
-
set
- Parameters:
cal
- theCalendar
to set the value to- Returns:
- this instance
-
set
- Parameters:
date
- theDate
to set the value to- Returns:
- this instance
-
unit
Returns theunit
.- Returns:
- the unit
-
unit
- Parameters:
unit
- theunit
- Returns:
- this instance
-