metio / storage-units.java Goto Github PK
View Code? Open in Web Editor NEWJava library for storage units
License: BSD Zero Clause License
Java library for storage units
License: BSD Zero Clause License
Basically revert the formatAsXXX
calls to get the number of bytes out of a previously formatted unit.
e.g. as static helpers in StorageUnits
In order to use features like #8 Java 9 is required
Instead of writing 1.0.0-SNAPSHOT we should write ${version.storage-units}
with a link to Maven central
Java 9 allows us to specify module boundaries by defining a module-info.java
file. See http://openjdk.java.net/projects/jigsaw/quick-start for more information
I see that storage units model pull in spotbugs annotation as a transitive dependency.
[INFO] | \- wtf.metio.storage-units:storage-units-model:jar:2023.10.10:compile
[INFO] | +- org.jspecify:jspecify:jar:0.3.0:compile
[INFO] | \- com.github.spotbugs:spotbugs-annotations:jar:4.7.3:compile
It's not necessary, since all those annotations are class retention anyway.
This might not matter, but ends up being added to the license manifest, when one matters.
kilobyte = 1024 bytes
Instead of leaving overflow detection up to the user, methods should fail in case an overflow happens
Some storage units are missing test cases
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.