Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 API文档中,据说 Amount 类具有方法 valueOf。
但我不知道如何使用它。
我需要创建一些无量纲数量的数量。就像,你知道的,5个苹果。
Amount.valueOf(100, new Unit<Dimensionless>()