Package io.dropwizard.util
Class Size
- java.lang.Object
-
- io.dropwizard.util.Size
-
- All Implemented Interfaces:
Serializable,Comparable<Size>
@Deprecated public class Size extends Object implements Comparable<Size>, Serializable
Deprecated.UseDataSizefor correct SI and IEC prefixes.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Sizebytes(long count)Deprecated.intcompareTo(Size other)Deprecated.booleanequals(Object obj)Deprecated.static SizefromDataSize(DataSize dataSize)Deprecated.longgetQuantity()Deprecated.SizeUnitgetUnit()Deprecated.static Sizegigabytes(long count)Deprecated.inthashCode()Deprecated.static Sizekilobytes(long count)Deprecated.static Sizemegabytes(long count)Deprecated.static Sizeparse(String size)Deprecated.static Sizeterabytes(long count)Deprecated.longtoBytes()Deprecated.DataSizetoDataSize()Deprecated.longtoGigabytes()Deprecated.longtoKilobytes()Deprecated.longtoMegabytes()Deprecated.StringtoString()Deprecated.longtoTerabytes()Deprecated.
-
-
-
Method Detail
-
bytes
public static Size bytes(long count)
Deprecated.
-
kilobytes
public static Size kilobytes(long count)
Deprecated.
-
megabytes
public static Size megabytes(long count)
Deprecated.
-
gigabytes
public static Size gigabytes(long count)
Deprecated.
-
terabytes
public static Size terabytes(long count)
Deprecated.
-
getQuantity
public long getQuantity()
Deprecated.
-
getUnit
public SizeUnit getUnit()
Deprecated.
-
toBytes
public long toBytes()
Deprecated.
-
toKilobytes
public long toKilobytes()
Deprecated.
-
toMegabytes
public long toMegabytes()
Deprecated.
-
toGigabytes
public long toGigabytes()
Deprecated.
-
toTerabytes
public long toTerabytes()
Deprecated.
-
compareTo
public int compareTo(Size other)
Deprecated.- Specified by:
compareToin interfaceComparable<Size>
-
toDataSize
public DataSize toDataSize()
Deprecated.- Since:
- 2.0
-
-