gnu.trove
Class TLongShortHashMap.EqProcedure

java.lang.Object
  extended bygnu.trove.TLongShortHashMap.EqProcedure
All Implemented Interfaces:
TLongShortProcedure
Enclosing class:
TLongShortHashMap

private static final class TLongShortHashMap.EqProcedure
extends java.lang.Object
implements TLongShortProcedure


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

TLongShortHashMap.EqProcedure

TLongShortHashMap.EqProcedure(TLongShortHashMap otherMap)
Method Detail

execute

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

eq

private final boolean eq(short v1,
                         short v2)
Compare two shorts for equality.