Interface ProxyInstant
- All Superinterfaces:
- Proxy, ProxyDate, ProxyTime, ProxyTimeZone
Interface to be implemented to mimic guest language objects that represents timestamps. This
interface also implements 
ProxyDate, ProxyTime and ProxyTimeZone.- Since:
- 19.2.0
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiondefault LocalDateasDate()Returns the date information.Returns the instant information.default LocalTimeasTime()Returns the time information.default ZoneIdReturns the timezone information.static ProxyInstantCreates a new proxy instant from a Java instant value.
- 
Method Details- 
asInstantInstant asInstant()Returns the instant information. The returned value must not benull. The following invariant must always hold for instant proxies:ProxyInstant proxy = ... ZoneId zone = proxy.getTimeZone(); LocalDate date = proxy.getDate(); LocalTime time = proxy.getTime(); assert ZonedDateTime.of(date, time, zone).equals(proxy.getInstant()); - Since:
- 19.2.0
 
- 
asDateReturns the date information. The returned value must not benull. The invariant specified inasInstant()must always hold for proxy instant values.
- 
asTimeReturns the time information. The returned value must not benull. The invariant specified inasInstant()must always hold for proxy instant values.
- 
asTimeZoneReturns the timezone information. The returned value must not benull. The invariant specified inasInstant()must always hold for proxy instant values.- Specified by:
- asTimeZonein interface- ProxyTimeZone
- Since:
- 19.2.0
- See Also:
 
- 
fromCreates a new proxy instant from a Java instant value.- Since:
- 19.2.0
 
 
-