Spring Data Core

org.springframework.data.geo
Class CustomMetric

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

public class CustomMetric
extends Object
implements Metric

Value object to create custom Metrics on the fly.

Since:
1.8
Author:
Oliver Gierke, Thomas Darimont
See Also:
Serialized Form

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 Core

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.