From 125dd365a2b8b319e28c390df769cc9ef83ce9f4 Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Thu, 3 Feb 2022 22:17:33 +0000 Subject: [PATCH] Changed private to protected for future overloading --- src/main/java/com/mattrixwv/matrix/IntegerMatrix.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java b/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java index 76ea193..8a23e18 100644 --- a/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java +++ b/src/main/java/com/mattrixwv/matrix/IntegerMatrix.java @@ -13,10 +13,10 @@ import com.mattrixwv.matrix.exceptions.InvalidRowSizeException; public class IntegerMatrix{ - private int[][] grid; + protected int[][] grid; //Helper functions - private void setGrid(int[][] grid){ + protected void setGrid(int[][] grid){ if(grid.length == 0){ grid = new int[0][0]; } @@ -44,7 +44,7 @@ public class IntegerMatrix{ this.grid = newGrid; } } - private int[][] copyGrid(){ + protected int[][] copyGrid(){ //Allocate memory for the new grid int[][] newGrid = new int[grid.length][grid[0].length]; @@ -58,7 +58,7 @@ public class IntegerMatrix{ //Return the new grid return newGrid; } - private boolean isSquare(){ + protected boolean isSquare(){ if(getNumRows() == 0){ return false; } @@ -67,7 +67,7 @@ public class IntegerMatrix{ } } //Returns a matrix with the supplied row and column removed - private IntegerMatrix laplaceExpansionHelper(int row, int col){ + protected IntegerMatrix laplaceExpansionHelper(int row, int col){ //Make sure the matrix is square if(!isSquare()){ throw new InvalidGeometryException("A matrix must be square for you to perform Laplace Expansion");