Class CustomMetric
java.lang.Object
org.springframework.data.geo.CustomMetric
- All Implemented Interfaces:
Serializable
,Metric
-
Constructor Summary
ConstructorsConstructorDescriptionCustomMetric
(double multiplier) Creates a customMetric
using the given multiplier.CustomMetric
(double multiplier, String abbreviation) Creates a customMetric
using the given multiplier and abbreviation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the scientific abbreviation of the unit theMetric
is in.double
Returns the multiplier to calculate metrics values from a base scale.
-
Constructor Details
-
CustomMetric
public CustomMetric(double multiplier) Creates a customMetric
using the given multiplier.- Parameters:
multiplier
- metric multiplier.
-
CustomMetric
-
-
Method Details
-
getMultiplier
public double getMultiplier()Description copied from interface:Metric
Returns the multiplier to calculate metrics values from a base scale.- Specified by:
getMultiplier
in interfaceMetric
- Returns:
-
getAbbreviation
Description copied from interface:Metric
Returns the scientific abbreviation of the unit theMetric
is in.- Specified by:
getAbbreviation
in interfaceMetric
- Returns:
-