MonetaryAmount@FunctionalInterface public interface NumberSupplier
NumberValue-valued results. This is the
NumberValue-producing specialization of Supplier (as in Java 8).
There is no requirement that a distinct result be returned each time the supplier is invoked.
This is a functional interface whose
functional method is getNumber().
This class does not extend Supplier since MonetaryAmount implements
both supplier interfaces, NumberSupplier and CurrencySupplier,
which will lead
to method name conflicts.
Supplier| Modifier and Type | Method | Description |
|---|---|---|
NumberValue |
getNumber() |
Gets the corresponding
NumberValue. |
NumberValue getNumber()
NumberValue.NumberValue, not null.Copyright © 2012–2018 JSR 354 - Expert Group. All rights reserved.