org.neo4j.graphalgo.impl.util
Class DoubleAdder

java.lang.Object
  extended by org.neo4j.graphalgo.impl.util.DoubleAdder
All Implemented Interfaces:
CostAccumulator<Double>

public class DoubleAdder
extends Object
implements CostAccumulator<Double>


Constructor Summary
DoubleAdder()
           
 
Method Summary
 Double addCosts(Double c1, Double c2)
          This is the accumulating method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleAdder

public DoubleAdder()
Method Detail

addCosts

public Double addCosts(Double c1,
                       Double c2)
Description copied from interface: CostAccumulator
This is the accumulating method. This should return the results of "adding" two path costs with each other.

Specified by:
addCosts in interface CostAccumulator<Double>
Parameters:
c1 - One of the costs.
c2 - The other cost.
Returns:
The resulting cost.


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.