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