@Internal public class DayTimeIntervalDurationConverter extends Object implements DataStructureConverter<Long,java.time.Duration>
DayTimeIntervalType
of Duration
external type.Modifier and Type | Field and Description |
---|---|
static DayTimeIntervalDurationConverter |
INSTANCE |
Constructor and Description |
---|
DayTimeIntervalDurationConverter() |
Modifier and Type | Method and Description |
---|---|
java.time.Duration |
toExternal(Long internal)
Converts to external data structure.
|
Long |
toInternal(java.time.Duration external)
Converts to internal data structure.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isIdentityConversion, open, toExternalOrNull, toInternalOrNull
public static final DayTimeIntervalDurationConverter INSTANCE
public Long toInternal(java.time.Duration external)
DataStructureConverter
Note: Parameter must not be null. Output must not be null.
toInternal
in interface DataStructureConverter<Long,java.time.Duration>
public java.time.Duration toExternal(Long internal)
DataStructureConverter
Note: Parameter must not be null. Output must not be null.
toExternal
in interface DataStructureConverter<Long,java.time.Duration>
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.