org.neo4j.graphalgo.impl.util
Class IntegerAdder

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

public class IntegerAdder
extends Object
implements CostAccumulator<Integer>


Constructor Summary
IntegerAdder()
           
 
Method Summary
 Integer addCosts(Integer c1, Integer 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

IntegerAdder

public IntegerAdder()
Method Detail

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.