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

FireFighter.java

Blame
  • Forked from LABOUREL Arnaud / Firefighter template
    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;
        }
    }