-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
375 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,11 @@ | |
|
||
import java.nio.charset.Charset; | ||
import java.nio.charset.StandardCharsets; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.time.ZoneId; | ||
import java.util.Locale; | ||
import java.util.TimeZone; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
/** | ||
* @author Kenny Partlow ([email protected]) | ||
|
@@ -28,12 +29,8 @@ public interface ConverterOptions { | |
|
||
|
||
/** | ||
* @return zoneId to use for source conversion when on is not provided on the source (Date, Instant, etc.) | ||
*/ | ||
default ZoneId getSourceZoneIdForLocalDates() { return ZoneId.systemDefault(); } | ||
|
||
/** | ||
* @return zoneId expected on the target when finished (only for types that support ZoneId or TimeZone) | ||
* @return {@link ZoneId} to use for source conversion when one is not provided and is required on the target | ||
* type. ie. {@link LocalDateTime}, {@link LocalDate}, or {@link String} when no zone is provided. | ||
*/ | ||
default ZoneId getZoneId() { return ZoneId.systemDefault(); } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.