我在JDK HashTable读到源代码,下面有一些代码片段:
** 易燃碰撞清单。 *
private static class Entry<K,V> implements Map.Entry<K,V> {
int hash;
K key;
V value;
Entry<K,V> next;
...
} //end of Entry<K,V>
I know the Entry here is a private inner class, but it s also a defined static class; my concern is, it isn t enough to just define it as private inner class? What s the main usage here to define it as a static class?
任何指南或答复均不胜感激。