gnu.trove
Class TShortFloatHashMap.EqProcedure

java.lang.Object
  extended bygnu.trove.TShortFloatHashMap.EqProcedure
All Implemented Interfaces:
TShortFloatProcedure
Enclosing class:
TShortFloatHashMap

private static final class TShortFloatHashMap.EqProcedure
extends java.lang.Object
implements TShortFloatProcedure


Field Summary
private  TShortFloatHashMap _otherMap
           
 
Constructor Summary
(package private) TShortFloatHashMap.EqProcedure(TShortFloatHashMap otherMap)
           
 
Method Summary
private  boolean eq(float v1, float v2)
          Compare two floats for equality.
 boolean execute(short key, float 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 TShortFloatHashMap _otherMap
Constructor Detail

TShortFloatHashMap.EqProcedure

TShortFloatHashMap.EqProcedure(TShortFloatHashMap otherMap)
Method Detail

execute

public final boolean execute(short key,
                             float value)
Description copied from interface: TShortFloatProcedure
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 TShortFloatProcedure
Parameters:
key - an short value
value - an float value
Returns:
true if additional invocations of the procedure are allowed.

eq

private final boolean eq(float v1,
                         float v2)
Compare two floats for equality.