on-internet
← Community

What does 0x7fffffff mean? Is there any other way to code getHashValue method?

Stack Overflow ·

public int getHashValue(K key){ return (key.hashCode() & 0x7fffffff) % size; } I don't understand what 0x7fffffff does mean. Is there any other way to code getHasValue method?

Comments

Sign in or sign up to comment and upvote.

No comments yet.