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
Metric
s on the fly.- Since:
- 1.8
- Author:
- Oliver Gierke, Thomas Darimont
- See Also:
-
Constructor Summary
ConstructorDescriptionCustomMetric
(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
-
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:
-