Class ByteAmount
- java.lang.Object
-
- io.tech1.framework.domain.hardware.bytes.ByteAmount
-
public class ByteAmount extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteAmount(long bytes, ByteUnit unit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)BigDecimalgetAmount()ByteUnitgetUnit()inthashCode()static ByteAmountofGb(long bytes)static ByteAmountofMB(long bytes)StringtoString()
-
-
-
Constructor Detail
-
ByteAmount
public ByteAmount(long bytes, ByteUnit unit)
-
-
Method Detail
-
ofGb
public static ByteAmount ofGb(long bytes)
-
ofMB
public static ByteAmount ofMB(long bytes)
-
getAmount
public BigDecimal getAmount()
-
getUnit
public ByteUnit getUnit()
-
canEqual
protected boolean canEqual(Object other)
-
-