Skip to content
Snippets Groups Projects
Select Git revision
  • 7715a07c99d460f3a820bff96c320f60d7e4e957
  • main default protected
  • variant
3 results

CloudFactory.java

Blame
  • Forked from COUETOUX Basile / FirefighterStarter
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ConstantCellInitializer.java 813 B
    package model;
    
    import matrix.Coordinate;
    import matrix.ListMatrix;
    import matrix.MatrixInitializer;
    
    /**
     *  An initializer for {@link ListMatrix} of {@link Cell}s, where each cell is initialized to the
     *  same value.
     *
     * @param <T> the type of content of each cell
     */
    public class ConstantCellInitializer<T>  implements MatrixInitializer<Cell<T>> {
        //TODO: ajouter la/les propriétes nécessaires
    
        /** Make a new {@link MatrixInitializer} with cells containing a {@link Cell} with the same
         * value.
         *
         * @param defaultValue the value stored in each cell.
         */
        public ConstantCellInitializer(T defaultValue) {
            //TODO: à compléter
        }
    
        @Override
        public Cell<T> initialValueAt(Coordinate coordinate) {
            //TODO: à compléter
            return null;
        }
    }