-
Notifications
You must be signed in to change notification settings - Fork 2
DataTypes
Edmo Costa edited this page Jun 20, 2017
·
5 revisions
Strings must be delimited by double or single quote.
"value"
'value'
'John\'s' #escaped quoteid = 999999999 #result in a Long object
id = 99999999999999999999999999999999 #result in a Double objectDecimal values are parsed to BigDecimal objects
price < 18968.36 #result in a BigDecimal objectYou can use number qualifiers to define the type of the object
price < 10I #for (I)nteger
price < 10L #for (L)ong
price < 10F #for (F)loat
price < 10D #for (D)oubleLocalDate:
date = 2017-01-01LocalDateTime:
date = 2017-01-01T12:10:10ZonedDateTime:
date = 2017-01-01T12:10:10+03:00[America/Sao_Paulo]
date = 2017-01-01T12:10:10+03:00LocalTime:
time = 18:10:10.056+01:00type = 'NAME' #by name valuetype = 0 #by ordinal value