data engineer with a passion for neat code
-
SCRM
- Barcelona
Pinned Loading
-
-
InformationSize: scala implementatio...
InformationSize: scala implementation for human-readable file sizes 1final case class InformationSize(size: Double, unit: InformationUnit) extends Ordered[InformationSize] {
2import InformationSize.{safeAdd, safeDivide, safeMultiply}
3import InformationUnit._
45if (size < 0d) throw new IllegalArgumentException(s"Unsupported negative size: $size")
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.