Last active
May 12, 2020 12:12
-
-
Save NoNews/ea70bd367bb485ab88b051d7b4d293f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int indexOf(Object key, int hash) { | |
final int N = mSize; | |
// Important fast case: if nothing is in here, nothing to look for. | |
if (N == 0) { | |
return ~0; // NOT 0 will return -1 | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment