Have RecordIterator implement Iterator<E> to be clearer about its purpose in
life. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2785 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -330,7 +330,8 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
|
||||
};
|
||||
}
|
||||
|
||||
protected abstract class RecordIterator
|
||||
protected abstract class RecordIterator<E>
|
||||
implements Iterator<E>
|
||||
{
|
||||
public boolean hasNext ()
|
||||
{
|
||||
@@ -381,16 +382,14 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
|
||||
protected Record<V> _record, _last;
|
||||
}
|
||||
|
||||
protected class IntEntryIterator extends RecordIterator
|
||||
implements Iterator<IntEntry<V>>
|
||||
protected class IntEntryIterator extends RecordIterator<IntEntry<V>>
|
||||
{
|
||||
public IntEntry<V> next () {
|
||||
return nextRecord();
|
||||
}
|
||||
}
|
||||
|
||||
protected class MapEntryIterator extends RecordIterator
|
||||
implements Iterator<Entry<Integer,V>>
|
||||
protected class MapEntryIterator extends RecordIterator<Entry<Integer,V>>
|
||||
{
|
||||
public Entry<Integer,V> next () {
|
||||
return nextRecord();
|
||||
|
||||
Reference in New Issue
Block a user