org.neo4j.graphalgo.impl.util
Class DoubleAdder
java.lang.Object
org.neo4j.graphalgo.impl.util.DoubleAdder
- All Implemented Interfaces:
- CostAccumulator<Double>
public class DoubleAdder
- extends Object
- implements CostAccumulator<Double>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleAdder
public DoubleAdder()
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.