public interface DurationValued extends ScalarValued
TokenValued
object containing a Duration value.TokenTypeConstant#DURATION
Modifier and Type | Method and Description |
---|---|
Duration |
asDuration()
Gets the contained Duration value as a
java.time.Duration . |
long |
asSeconds()
Get the contained duration value as the number of seconds.
|
int |
subsecNanos()
Get the subsecond portion of the contained duration value.
|
getType, isZero
isNull
Duration asDuration()
java.time.Duration
.java.time.Duration
. If null valued,
as indicated by TokenValued.isNull()
, null
is returned.long asSeconds()
TokenValued.isNull()
,
0
is returned.subsecNanos()
int subsecNanos()
TokenValued.isNull()
,
0
is returned.asSeconds()
Copyright © 2021 Actian Corporation. All rights reserved.