-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Comparable
public enum Unit.Weight
Weight units
-
-
Method Summary
Modifier and Type Method Description BigDecimal
convert(BigDecimal weight, Unit.Weight to)
Converts the weight from and to the given Weight String
toString()
static Array<Unit.Weight>
values()
static Unit.Weight
valueOf(String name)
-
-
Method Detail
-
convert
BigDecimal convert(BigDecimal weight, Unit.Weight to)
Converts the weight from and to the given Weight
- Parameters:
weight
- measurement takento
- units
-
values
static Array<Unit.Weight> values()
-
valueOf
static Unit.Weight valueOf(String name)
-
-
-
-