int nextLookup(int lookup, int limitLookup, boolean hasZeroKey,
                   int zeroKeyIndex) {

        for (++lookup; lookup < limitLookup; lookup++) {
            if (isObjectKey) {
                if (objectKeyTable[lookup] != null) {
                    return lookup;
                }
            } else if (isIntKey) {
                if (intKeyTable[lookup] != 0) {
                    return lookup;
                } else if (hasZeroKey && lookup == zeroKeyIndex) {
                    return lookup;
                }
            } else {
                if (longKeyTable[lookup] != 0) {
                    return lookup;
                } else if (hasZeroKey && lookup == zeroKeyIndex) {
                    return lookup;
                }
            }
        }

        return lookup;
    }
int nextLookup ( int lookup , int limitLookup , boolean hasZeroKey , int zeroKeyIndex ) { for ( ++ lookup ; lookup < limitLookup ; lookup ++ ) { if ( isObjectKey ) { if ( objectKeyTable [ lookup ] != null ) { return lookup ; } } else if ( isIntKey ) { if ( intKeyTable [ lookup ] != 0 ) { return lookup ; } else if ( hasZeroKey && lookup == zeroKeyIndex ) { return lookup ; } } else { if ( longKeyTable [ lookup ] != 0 ) { return lookup ; } else if ( hasZeroKey && lookup == zeroKeyIndex ) { return lookup ; } } } return lookup ; }
find the next lookup in the key/value tables with an entry
allows the use of old limit and zero int key attributes