(Object key)
| 40 | return oldValue; |
| 41 | } |
| 42 | @Override public V get(Object key) { |
| 43 | int index = Math.abs(key.hashCode()) % SIZE; |
| 44 | if(buckets[index] == null) return null; |
| 45 | for(MapEntry<K, V> iPair : buckets[index]) |
| 46 | if(iPair.getKey().equals(key)) |
| 47 | return iPair.getValue(); |
| 48 | return null; |
| 49 | } |
| 50 | @Override public Set<Map.Entry<K, V>> entrySet() { |
| 51 | Set<Map.Entry<K, V>> set= new HashSet<>(); |
| 52 | for(LinkedList<MapEntry<K, V>> bucket : buckets) { |