Skip to content
Snippets Groups Projects
MatrixInitializer.java 568 B
Newer Older
  • Learn to ignore specific revisions
  • Guyslain's avatar
    Guyslain committed
    package matrix;
    
    Guyslain's avatar
    Guyslain committed
    
    
    Guyslain's avatar
    Guyslain committed
     * An interface for initializing a {@link ListMatrix} by providing initial values for each cell.
    
    Guyslain's avatar
    Guyslain committed
     * @param <T> The type of values to initialize the {@link ListMatrix} with.
    
    Guyslain's avatar
    Guyslain committed
    public interface MatrixInitializer<T> {
    
    
    Guyslain's avatar
    Guyslain committed
         * Returns the initial value to be set in a {@link ListMatrix} cell at the specified
    
         * {@link Coordinate}.
         *
         * @param coordinate The {@link Coordinate} at which to set the initial value.
         * @return The initial value for the specified cell.
         */
    
    Guyslain's avatar
    Guyslain committed
        T initialValueAt(Coordinate coordinate);
    }