Aufgabenblatt 6
This commit is contained in:
15
src/MassiveIterator.java
Normal file
15
src/MassiveIterator.java
Normal file
@ -0,0 +1,15 @@
|
||||
import java.util.Iterator;
|
||||
|
||||
// An iterator over elements of 'Massive'.
|
||||
//
|
||||
public interface MassiveIterator extends Iterator<Massive> {
|
||||
|
||||
@Override
|
||||
// Returns the next element in the iteration.
|
||||
// (Returns 'null' if the iteration has no more elements.)
|
||||
Massive next();
|
||||
|
||||
@Override
|
||||
// Returns 'true' if the iteration has more elements.
|
||||
boolean hasNext();
|
||||
}
|
Reference in New Issue
Block a user