@Internal
public final class InstantConverter
extends com.google.common.base.Converter<java.time.Instant,com.google.protobuf.Timestamp>
implements java.io.Serializable
Timestamp
to Instant
.Constructor and Description |
---|
InstantConverter() |
Modifier and Type | Method and Description |
---|---|
protected java.time.Instant |
doBackward(com.google.protobuf.Timestamp value) |
protected com.google.protobuf.Timestamp |
doForward(java.time.Instant value) |
static com.google.common.base.Converter<java.time.Instant,com.google.protobuf.Timestamp> |
instance() |
static com.google.common.base.Converter<com.google.protobuf.Timestamp,java.time.Instant> |
reversed() |
andThen, apply, convert, convertAll, equals, from, identity, reverse
public static com.google.common.base.Converter<java.time.Instant,com.google.protobuf.Timestamp> instance()
public static com.google.common.base.Converter<com.google.protobuf.Timestamp,java.time.Instant> reversed()
protected com.google.protobuf.Timestamp doForward(java.time.Instant value)
doForward
in class com.google.common.base.Converter<java.time.Instant,com.google.protobuf.Timestamp>
protected java.time.Instant doBackward(com.google.protobuf.Timestamp value)
doBackward
in class com.google.common.base.Converter<java.time.Instant,com.google.protobuf.Timestamp>