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.
独自のカスタムコンバーターを作成し、javax.measureパッケージを使用して変換係数を指定するにはどうすればよいですか。(例:パイントからガロン)
まあ、私はそれを行うための「正しい」方法を知りませんが、明白な方法はNonSIクラスのパターンに従うことです; つまり、SI単位に関する非SI単位の標準定義に基づく値を使用して、各単位の静力学を含む独自のクラスを作成します。
NonSI