Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support java.time classes #48

Open
johnwright opened this issue Apr 10, 2018 · 0 comments
Open

Support java.time classes #48

johnwright opened this issue Apr 10, 2018 · 0 comments

Comments

@johnwright
Copy link
Member

The types in java.time already have static parse methods:

  • Instant
  • OffsetDateTime
  • ZonedDateTime
  • LocalDate
  • LocalTime
  • LocalDateTime
  • OffsetTime
  • MonthDay

To reduce boilerplate, the static method lookup approach used in OptionalWrapper.Invoker could be refactored to support either class names (for runtime dependencies) or class objects. This could be an opportunity to generalise ReflectionValueParser, too.

@johnwright johnwright changed the title Support java.time classes Support java.time classes Apr 10, 2018
@johnwright johnwright changed the title Support java.time classes Support java.time classes Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant