com
.
xiaomi
.
duckling
.
dimension
numeral
package
numeral
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
numeral
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Type Members
case class
DoubleSideIntervalValue
(
left:
Double
,
right:
Double
,
leftType:
IntervalType
=
IntervalType.Closed
,
rightType:
IntervalType
=
IntervalType.Open
)
extends
IntervalValue
with
Product
with
Serializable
区间,默认左闭右开
trait
IntervalValue
extends
ResolvedValue
case class
NumeralData
(
value:
Double
,
grain:
Option
[
Int
] =
None
,
multipliable:
Boolean
=
false
,
sequence:
Option
[
String
] =
None
,
composable:
Boolean
=
true
,
precision:
Int
=
0
)
extends
Resolvable
with
Product
with
Serializable
class
NumeralOptions
extends
AnyRef
数字解析的额外参数,控制一些可选行为
type
NumeralProd
=
PartialFunction
[(
NumeralOptions
,
List
[
Token
]),
Option
[
Token
]]
case class
NumeralValue
(
n:
Double
,
precision:
Int
=
0
)
extends
IntervalValue
with
Product
with
Serializable
case class
OpenIntervalValue
(
start:
Double
,
direction:
IntervalDirection
)
extends
IntervalValue
with
Product
with
Serializable
开区间
trait
Rules
extends
DimRules
Value Members
val
CNDigit
:
String
val
CapitalCNDigit
:
String
object
Numeral
extends
Dimension
with
Rules
with
Product
with
Serializable
object
Predicates
object
Prods
package
fraction
package
interval
package
multiple
def
opt
(
nopt:
NumeralProd
)
:
Production
package
seq
Inherited from
AnyRef
Inherited from
Any
Ungrouped