@InterfaceAudience.Public public final class Size extends Object implements Comparable<Size>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Size.Unit | 
| Modifier and Type | Field and Description | 
|---|---|
| private static BigDecimal | SCALE_BASE | 
| private Size.Unit | unit | 
| private double | value | 
| static Size | ZERO | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Size other) | 
| boolean | equals(Object obj) | 
| double | get()get the value | 
| double | get(Size.Unit unit)get the value which is converted to specified unit. | 
| long | getLongValue()get the value | 
| Size.Unit | getUnit() | 
| int | hashCode() | 
| String | toString() | 
private static final BigDecimal SCALE_BASE
private final double value
public long getLongValue()
public double get()
public double get(Size.Unit unit)
unit - size unitpublic int compareTo(Size other)
compareTo in interface Comparable<Size>Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.