public class MeasurementUnit extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MeasurementUnit.Builder
Class to build instances of
MeasurementUnit. |
| Constructor and Description |
|---|
MeasurementUnit(MeasurementUnitCustom customUnit,
String areaUnit,
String lengthUnit,
String volumeUnit,
String weightUnit,
String genericUnit,
String timeUnit,
String type)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAreaUnit()
Getter for AreaUnit.
|
MeasurementUnitCustom |
getCustomUnit()
Getter for CustomUnit.
|
String |
getGenericUnit()
Getter for GenericUnit.
|
String |
getLengthUnit()
Getter for LengthUnit.
|
String |
getTimeUnit()
Getter for TimeUnit.
|
String |
getType()
Getter for Type.
|
String |
getVolumeUnit()
Getter for VolumeUnit.
|
String |
getWeightUnit()
Getter for WeightUnit.
|
int |
hashCode() |
MeasurementUnit.Builder |
toBuilder()
Builds a new
MeasurementUnit.Builder object. |
String |
toString()
Converts this MeasurementUnit into string format.
|
public MeasurementUnit(MeasurementUnitCustom customUnit, String areaUnit, String lengthUnit, String volumeUnit, String weightUnit, String genericUnit, String timeUnit, String type)
customUnit - MeasurementUnitCustom value for customUnit.areaUnit - String value for areaUnit.lengthUnit - String value for lengthUnit.volumeUnit - String value for volumeUnit.weightUnit - String value for weightUnit.genericUnit - String value for genericUnit.timeUnit - String value for timeUnit.type - String value for type.public MeasurementUnitCustom getCustomUnit()
public String getAreaUnit()
public String getLengthUnit()
public String getVolumeUnit()
public String getWeightUnit()
public String getGenericUnit()
public String getTimeUnit()
public String getType()
public String toString()
public MeasurementUnit.Builder toBuilder()
MeasurementUnit.Builder object.
Creates the instance with the state of the current model.MeasurementUnit.Builder objectCopyright © 2022. All rights reserved.