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 ()
|
public boolean hasNext ()
|
||||||
{
|
{
|
||||||
@@ -381,16 +382,14 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
|
|||||||
protected Record<V> _record, _last;
|
protected Record<V> _record, _last;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected class IntEntryIterator extends RecordIterator
|
protected class IntEntryIterator extends RecordIterator<IntEntry<V>>
|
||||||
implements Iterator<IntEntry<V>>
|
|
||||||
{
|
{
|
||||||
public IntEntry<V> next () {
|
public IntEntry<V> next () {
|
||||||
return nextRecord();
|
return nextRecord();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected class MapEntryIterator extends RecordIterator
|
protected class MapEntryIterator extends RecordIterator<Entry<Integer,V>>
|
||||||
implements Iterator<Entry<Integer,V>>
|
|
||||||
{
|
{
|
||||||
public Entry<Integer,V> next () {
|
public Entry<Integer,V> next () {
|
||||||
return nextRecord();
|
return nextRecord();
|
||||||
|
|||||||
Reference in New Issue
Block a user