More compactification.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2447 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -199,18 +199,13 @@ public class CountHashMap<K> extends HashMap<K, int[]>
|
|||||||
@Override public Iterator<Entry<E>> iterator () {
|
@Override public Iterator<Entry<E>> iterator () {
|
||||||
final Iterator<Map.Entry<E, int[]>> itr = _superset.iterator();
|
final Iterator<Map.Entry<E, int[]>> itr = _superset.iterator();
|
||||||
return new Iterator<Entry<E>>() {
|
return new Iterator<Entry<E>>() {
|
||||||
public boolean hasNext ()
|
public boolean hasNext () {
|
||||||
{
|
|
||||||
return itr.hasNext();
|
return itr.hasNext();
|
||||||
}
|
}
|
||||||
|
public Entry<E> next () {
|
||||||
public Entry<E> next ()
|
|
||||||
{
|
|
||||||
return new CountEntryImpl<E>(itr.next());
|
return new CountEntryImpl<E>(itr.next());
|
||||||
}
|
}
|
||||||
|
public void remove () {
|
||||||
public void remove ()
|
|
||||||
{
|
|
||||||
itr.remove();
|
itr.remove();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user