mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-03 09:14:01 +00:00
fix[HashMapLongInt]: type conversion error
This commit is contained in:
1 parent
b6d3103d81
commit
7af6dede5f
1 file changed
+2
-2
@@ -74,13 +74,13 @@ public class HashMapLongInt implements Map<Long, Integer> {
|
||||
return size == 0;
|
||||
}
|
||||
|
||||
public boolean containsKeyPrimitive(int key) {
|
||||
public boolean containsKeyPrimitive(long key) {
|
||||
return indexOf(key) >= 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean containsKey(Object key) {
|
||||
return containsKeyPrimitive(ArrayUtils.intValue((Integer) key));
|
||||
return containsKeyPrimitive(ArrayUtils.longValue((Long) key));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user