gnu.trove
Class TFloatDoubleHashMap.EqProcedure

java.lang.Object
  extended by gnu.trove.TFloatDoubleHashMap.EqProcedure
All Implemented Interfaces:
TFloatDoubleProcedure
Enclosing class:
TFloatDoubleHashMap

private static final class TFloatDoubleHashMap.EqProcedure
extends java.lang.Object
implements TFloatDoubleProcedure


Field Summary
private  TFloatDoubleHashMap _otherMap
           
 
Constructor Summary
TFloatDoubleHashMap.EqProcedure(TFloatDoubleHashMap otherMap)
           
 
Method Summary
private  boolean eq(double v1, double v2)
          Compare two doubles for equality.
 boolean execute(float key, double value)
          Executes this procedure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_otherMap

private final TFloatDoubleHashMap _otherMap
Constructor Detail

TFloatDoubleHashMap.EqProcedure

TFloatDoubleHashMap.EqProcedure(TFloatDoubleHashMap otherMap)
Method Detail

execute

public final boolean execute(float key,
                             double value)
Description copied from interface: TFloatDoubleProcedure
Executes this procedure. A false return value indicates that the application executing this procedure should not invoke this procedure again.

Specified by:
execute in interface TFloatDoubleProcedure
Parameters:
key - an float value
value - an double value
Returns:
true if additional invocations of the procedure are allowed.

eq

private final boolean eq(double v1,
                         double v2)
Compare two doubles for equality.