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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnow()Sets the newpropertyvalue to now.Sets theDateTimeFormatterpattern.set(LocalDateTime date) Sets the newpropertyvalue to aLocalDateTimeset(ZonedDateTime date) Sets the newpropertyvalue to aZonedDateTimeunit()Returns theunit.unit(EntryDate.Units unit)
-
Constructor Details
-
EntryDate
Creates a newentry.- Parameters:
key- the required property key
-
-
Method Details
-
now
Sets the newpropertyvalue to now.- Returns:
- this instance
-
pattern
Sets theDateTimeFormatterpattern.- Parameters:
pattern- the pattern
-
set
- Parameters:
instant- theInstantto set the value to- Returns:
- this instance
-
set
- Parameters:
date- theLocalDateto set the value to- Returns:
- this instance
-
set
Sets the newpropertyvalue to aLocalDateTime- Parameters:
date- theLocalDateTimeto set the value to- Returns:
- this instance
-
set
Sets the newpropertyvalue to aZonedDateTime- Parameters:
date- theZonedDateTimeto set the value to- Returns:
- this instance
-
set
- Parameters:
time- theLocalTimeto set the value to- Returns:
- this instance
-
set
- Parameters:
cal- theCalendarto set the value to- Returns:
- this instance
-
set
- Parameters:
date- theDateto set the value to- Returns:
- this instance
-
unit
Returns theunit.- Returns:
- the unit
-
unit
- Parameters:
unit- theunit- Returns:
- this instance
-