Java converts a unit to a string of integers

I want to convert strings such as' 1g 'or' 100k 'or' 15. 3M 'to integers I suspect it's floating around some libraries in Maven center, but I'm not sure where to look first

More clearly, I focus on dimensionless numbers, or, if you like, on disk space / file size units Think - Xmx to Java command

Solution

Jsscience may be what you're looking for

You can also see:

> JavaWorld article on JSR-275 / JScience

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>