org.springframework.data.mongodb.core.geo
Class CustomMetric
java.lang.Object
org.springframework.data.mongodb.core.geo.CustomMetric
- All Implemented Interfaces:
- Metric
public class CustomMetric
- extends Object
- implements Metric
Value object to create custom Metric
s on the fly.
- Author:
- Oliver Gierke
Constructor Summary |
CustomMetric(double multiplier)
Creates a custom Metric using the given multiplier. |
Method Summary |
double |
getMultiplier()
Returns the multiplier to calculate metrics values from a base scale. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomMetric
public CustomMetric(double multiplier)
- Creates a custom
Metric
using the given multiplier.
- Parameters:
multiplier
-
getMultiplier
public double getMultiplier()
- Description copied from interface:
Metric
- Returns the multiplier to calculate metrics values from a base scale.
- Specified by:
getMultiplier
in interface Metric
- Returns:
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.