@InterfaceAudience.Public public final class Size extends Object implements Comparable<Size>
Modifier and Type | Class and Description |
---|---|
static class |
Size.Unit |
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() |
public static final Size ZERO
public Size(double value, Size.Unit unit)
public Size.Unit getUnit()
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–2019 Cloudera. All rights reserved.