您如何编写自己的自定义转换器并使用 javax.measure 包指定转换因子。(例如品脱到加仑)
问问题
657 次
1 回答
1
Well, I don't know the "correct" way to do it, but the obvious way would be to follow the pattern of the NonSI
class; i.e. create your own class containing statics for each unit, with values based on the standard definitions for the non-SI units in terms of SI units.
于 2010-11-22T07:04:27.673 回答