T - represented Java typepublic interface NumberItem<T> extends Item<T>, LongSupplier
Types that can carry numbers.| Modifier and Type | Method and Description |
|---|---|
int |
getDivisor()
Returns the divisor to be used to obtain the actual numerical value (as
opposed to the underlying long value returned by
LongSupplier.getAsLong()). |
NumberItem<T> |
withParams(Parameters params)
Given an existing
Item, return a new instance with the specified
Parameters. |
getParamsserialize, serializeTogetAsLongint getDivisor()
LongSupplier.getAsLong()).1 for Integers, 1000 for Decimals)NumberItem<T> withParams(Parameters params)
ParametrizableItem, return a new instance with the specified
Parameters.withParams in interface Item<T>withParams in interface Parametrizable<T>params - Parameters to set (must be non-null)Parameters.Copyright © 2021 The Apache Software Foundation. All rights reserved.