Those weren't needed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1842 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -184,14 +184,13 @@ public class CountHashMap<K> extends HashMap<K, int[]>
|
|||||||
protected class CountEntrySet<K>
|
protected class CountEntrySet<K>
|
||||||
extends AbstractSet<Entry<K>>
|
extends AbstractSet<Entry<K>>
|
||||||
{
|
{
|
||||||
public CountEntrySet (Set superset)
|
public CountEntrySet (Set<Map.Entry<K,int[]>> superset)
|
||||||
{
|
{
|
||||||
_superset = superset;
|
_superset = superset;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Iterator<Entry<K>> iterator ()
|
public Iterator<Entry<K>> iterator ()
|
||||||
{
|
{
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
final Iterator<Map.Entry<K, int[]>> itr = _superset.iterator();
|
final Iterator<Map.Entry<K, int[]>> itr = _superset.iterator();
|
||||||
return new Iterator<Entry<K>>() {
|
return new Iterator<Entry<K>>() {
|
||||||
public boolean hasNext ()
|
public boolean hasNext ()
|
||||||
@@ -199,10 +198,9 @@ public class CountHashMap<K> extends HashMap<K, int[]>
|
|||||||
return itr.hasNext();
|
return itr.hasNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public Entry<K> next ()
|
public Entry<K> next ()
|
||||||
{
|
{
|
||||||
return new CountEntryImpl(itr.next());
|
return new CountEntryImpl<K>(itr.next());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void remove ()
|
public void remove ()
|
||||||
@@ -232,6 +230,6 @@ public class CountHashMap<K> extends HashMap<K, int[]>
|
|||||||
CountHashMap.this.clear();
|
CountHashMap.this.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Set _superset;
|
protected Set<Map.Entry<K,int[]>> _superset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user