Class SecondaryMeasurementUnit
-
- All Implemented Interfaces:
public class SecondaryMeasurementUnit
This class holds the units to be used for the secondary unit(if enabled by the user) and just contains the MeasurementPrecision and the com.pspdfkit.annotations.measurements.Scale.UnitTo. With these two values, we use the com.pspdfkit.internal.utilities.measurements.Converters class to convert between the different units
-
-
Field Summary
Fields Modifier and Type Field Description public final MeasurementPrecision
precision
public final Scale.UnitTo
unit
-
Constructor Summary
Constructors Constructor Description SecondaryMeasurementUnit(MeasurementPrecision precision, Scale.UnitTo unit)
-
Method Summary
Modifier and Type Method Description MeasurementPrecision
getPrecision()
Scale.UnitTo
getUnit()
static SecondaryMeasurementUnit
getDefault()
int
hashCode()
boolean
equals(@Nullable() Object other)
String
toString()
-
-
Constructor Detail
-
SecondaryMeasurementUnit
SecondaryMeasurementUnit(MeasurementPrecision precision, Scale.UnitTo unit)
-
-
Method Detail
-
getPrecision
@NonNull() MeasurementPrecision getPrecision()
-
getUnit
@NonNull() Scale.UnitTo getUnit()
-
getDefault
static SecondaryMeasurementUnit getDefault()
-
hashCode
int hashCode()
-
-
-
-