Package org.springframework.data.geo
Class CustomMetric
java.lang.Object
org.springframework.data.geo.CustomMetric
- All Implemented Interfaces:
Serializable,Metric
Value object to create custom
Metrics on the fly.- Since:
- 1.8
- Author:
- Oliver Gierke, Thomas Darimont
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCustomMetric(double multiplier) Creates a customMetricusing the given multiplier.CustomMetric(double multiplier, String abbreviation) Creates a customMetricusing the given multiplier and abbreviation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the scientific abbreviation of the unit theMetricis in.doubleReturns the multiplier to calculate metrics values from a base scale.
-
Constructor Details
-
Method Details
-
getMultiplier
public double getMultiplier()Description copied from interface:MetricReturns the multiplier to calculate metrics values from a base scale.- Specified by:
getMultiplierin interfaceMetric- Returns:
-
getAbbreviation
Description copied from interface:MetricReturns the scientific abbreviation of the unit theMetricis in.- Specified by:
getAbbreviationin interfaceMetric- Returns:
-