public class StaticZoneStrategy extends Object implements ZoneStrategy
| Constructor and Description |
|---|
StaticZoneStrategy(ZoneId zoneId)
Creates a new
StaticZoneStrategy instance, that will always return the given [zone. |
| Modifier and Type | Method and Description |
|---|---|
ZoneId |
getZoneId()
Return the ZoneId to use for formatting a java.time object, when no zone information exists on object and are
not given as a parameter.
|
ZoneId |
getZoneId(ZoneId input)
Return the ZoneId to use for formatting a java.time object.
|
public StaticZoneStrategy(ZoneId zoneId)
StaticZoneStrategy instance, that will always return the given [zone.zoneId - The ZoneId that should be returned by getZoneId(ZoneId).public ZoneId getZoneId(ZoneId input)
ZoneStrategygetZoneId in interface ZoneStrategyinput - The current ZoneId provided by a java.time object or method parameter.ZoneId that should be used for formatting the ZonedDateTime object.public ZoneId getZoneId()
ZoneStrategygetZoneId in interface ZoneStrategyZoneId that should be used for formatting the object.Copyright © 2022. All rights reserved.