eeverman / eeverman/andhow

Add Date Type

Open
#192 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue Hacktoberfest help wanted
Dominant language
Java
Stars
25
Forks
34
PR merge metrics
No merged PRs in 30d

Description

There is already a [LocalDateTime](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/property/LocalDateTimeProp.java), so task is a lot of copy/paste.

If you are unfamiliar with the project, please look over the [AndHow Site](https://www.andhowconfig.org/) to get a basic understanding of what AndHow is, in particular, how [Properties](https://www.andhowconfig.org/user-guide/andhow-properties) are used.

For this task:
- Be sure to work from the main branch
- Create a new LocalDateType, similar to [LocalDateTimeType](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/valuetype/LocalDateTimeType.java) except based on java.time.LocalDate.
- Create a new LocalDateValidator, similar to [LocalDateTimeValidator](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/valid/LocalDateTimeValidator.java), but using the java.time.LocalDate type.
- Create a new LocalDateProp, similar to [LocalDateTimeProp](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/property/LocalDateTimeProp.java), except using your new LocalDateType and LocalDateValidator, and basically replacing references to LocalDateTime to LocalDate.
- Create new tests for each class (can be copied from existing test classes)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.