public class StaticZonedDateTimeStrategy extends Object implements ZonedDateTimeStrategy
| Constructor and Description |
|---|
StaticZonedDateTimeStrategy(ZoneId zoneId)
Creates a new
StaticZonedDateTimeStrategy instance, that will always return the given [zone. |
| Modifier and Type | Method and Description |
|---|---|
ZoneId |
getZoneId(ZoneId input)
Return the ZoneId to use when formatting a
ZonedDateTime |
public StaticZonedDateTimeStrategy(ZoneId zoneId)
StaticZonedDateTimeStrategy instance, that will always return the given [zone.zoneId - The ZoneId that should be returned by getZoneId(ZoneId).public ZoneId getZoneId(ZoneId input)
ZonedDateTimeStrategyZonedDateTimegetZoneId in interface ZonedDateTimeStrategyinput - The current ZoneId from a ZonedDateTime object.ZoneId that should be used when formatting the ZonedDateTime object.Copyright © 2020. All rights reserved.