public interface PeriodValued extends ScalarValued
TokenValued
object containing a Period value.TokenTypeConstant#PERIOD
Modifier and Type | Method and Description |
---|---|
Period |
asPeriod()
Gets the contained Period value as a
java.time.Period . |
int |
getDays()
Gets the day portion of the contained period value.
|
int |
getMonths()
Gets the month portion of the contained period value.
|
int |
getYears()
Gets the year portion of the contained period value.
|
getType, isZero
isNull
Period asPeriod()
java.time.Period
.java.time.Period
. If null valued,
as indicated by TokenValued.isNull()
, null
is returned.int getYears()
TokenValued.isNull()
,
0
is returned.int getMonths()
TokenValued.isNull()
,
0
is returned.int getDays()
TokenValued.isNull()
,
0
is returned.Copyright © 2020 Actian Corporation. All rights reserved.