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

Class MyEntry

classpath/java/util/TreeMap.java:153–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 private static class MyEntry<K,V> implements Entry<K,V> {
154 public final K key;
155 public V value;
156
157 public MyEntry(K key, V value) {
158 this.key = key;
159 this.value = value;
160 }
161
162 public K getKey() {
163 return key;
164 }
165
166 public V getValue() {
167 return value;
168 }
169
170 public V setValue(V value) {
171 V old = this.value;
172 this.value = value;
173 return old;
174 }
175
176 }
177
178 private class KeySet extends AbstractSet<K> {
179 public int size() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected