mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-20 02:29:03 +00:00
fix[HashMapLongInt]: type conversion error
This commit is contained in:
@@ -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