Select Git revision
Rectangle.java
Forked from
COUETOUX Basile / graphic-2020
Source project has a limited visibility.
-
AREZKI Celia authored
Move all the old code into a package named tp3, and create a new package for tp5, then add the Shape interface within it
AREZKI Celia authoredMove all the old code into a package named tp3, and create a new package for tp5, then add the Shape interface within it
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ConstantCellInitializer.java 424 B
package model;
import datastruct.Coordinate;
import datastruct.MatrixInitializer;
public class ConstantCellInitializer<T> implements MatrixInitializer<Cell<T>> {
private final T defaultValue;
public ConstantCellInitializer(T defaultValue) {
this.defaultValue = defaultValue;
}
@Override
public Cell<T> initialValueAt(Coordinate coordinate) {
return new Cell<>(defaultValue);
}
}