gnu.trove
Class TShortByteHashMap.EqProcedure

java.lang.Object
  extended bygnu.trove.TShortByteHashMap.EqProcedure
All Implemented Interfaces:
TShortByteProcedure
Enclosing class:
TShortByteHashMap

private static final class TShortByteHashMap.EqProcedure
extends java.lang.Object
implements TShortByteProcedure


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

TShortByteHashMap.EqProcedure

TShortByteHashMap.EqProcedure(TShortByteHashMap otherMap)
Method Detail

execute

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

eq

private final boolean eq(byte v1,
                         byte v2)
Compare two bytes for equality.