MCPcopy Create free account
hub / github.com/ReadyTalk/avian / MyCell

Class MyCell

classpath/java/util/HashMap.java:270–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 private static class MyCell<K, V> implements Cell<K, V> {
271 public final K key;
272 public V value;
273 public Cell<K, V> next;
274 public int hashCode;
275
276 public MyCell(K key, V value, Cell<K, V> next, int hashCode) {
277 this.key = key;
278 this.value = value;
279 this.next = next;
280 this.hashCode = hashCode;
281 }
282
283 public K getKey() {
284 return key;
285 }
286
287 public V getValue() {
288 return value;
289 }
290
291 public V setValue(V value) {
292 V old = this.value;
293 this.value = value;
294 return old;
295 }
296
297 public HashMap.Cell<K, V> next() {
298 return next;
299 }
300
301 public void setNext(HashMap.Cell<K, V> next) {
302 this.next = next;
303 }
304
305 public int hashCode() {
306 return hashCode;
307 }
308 }
309
310 static class MyHelper<K, V> implements Helper<K, V> {
311 public Cell<K, V> make(K key, V value, Cell<K, V> next) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected