Spring Data MongoDB

org.springframework.data.mongodb.core.geo
Class CustomMetric

java.lang.Object
  extended by org.springframework.data.mongodb.core.geo.CustomMetric
All Implemented Interfaces:
Metric

public class CustomMetric
extends Object
implements Metric

Value object to create custom Metrics 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
 

Constructor Detail

CustomMetric

public CustomMetric(double multiplier)
Creates a custom Metric using the given multiplier.

Parameters:
multiplier -
Method Detail

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:

Spring Data MongoDB

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.