Skip to content
Snippets Groups Projects
Select Git revision
  • adb13dc861839c3dd5b4f6e8de40cc123d008c74
  • master default protected
  • undefined
3 results

Main.java

Blame
  • Forked from DAS Shantanu / Prog2Aix-tp3
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CoordinateIterator.java 1.17 KiB
    package matrix;
    
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    /**
     * An {@link Iterator} for generating 2D {@link Coordinate}s within a specified width and
     * height range.
     */
    class CoordinateIterator implements Iterator<Coordinate> {
    
        /**
         * Creates a new {@link CoordinateIterator} with the specified width and height.
         *
         * @param width  The width of the coordinate range.
         * @param height The height of the coordinate range.
         */
        public CoordinateIterator(int width, int height) {
            // TODO: à compléter
        }
    
        /**
         * Checks if there are more {@link Coordinate}s to iterate over.
         *
         * @return true if there are more {@link Coordinate}s; otherwise, false.
         */
        @Override
        public boolean hasNext() {
            // TODO: à compléter
            return false;
        }
    
        /**
         * Returns the next {@link Coordinate} in the iteration.
         *
         * @return The next {@link Coordinate} in the iteration.
         * @throws NoSuchElementException if there are no more {@link Coordinate}s to iterate over.
         */
        @Override
        public Coordinate next() {
            // TODO: à compléter
            return null;
        }
    }