aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr/umlv/java/wallj/board/Matrix.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/fr/umlv/java/wallj/board/Matrix.java')
-rw-r--r--src/main/java/fr/umlv/java/wallj/board/Matrix.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/board/Matrix.java b/src/main/java/fr/umlv/java/wallj/board/Matrix.java
index c6a2528..27c17f2 100644
--- a/src/main/java/fr/umlv/java/wallj/board/Matrix.java
+++ b/src/main/java/fr/umlv/java/wallj/board/Matrix.java
@@ -8,6 +8,10 @@ import java.util.List;
8 * @author Pacien TRAN-GIRARD 8 * @author Pacien TRAN-GIRARD
9 */ 9 */
10public final class Matrix { 10public final class Matrix {
11 private Matrix() {
12 // static class
13 }
14
11 /** 15 /**
12 * @param m the matrix (2D array) 16 * @param m the matrix (2D array)
13 * @return the width of the matrix (0 if null) 17 * @return the width of the matrix (0 if null)
@@ -47,8 +51,4 @@ public final class Matrix {
47 public static boolean isShapeValid(List<? extends List<?>> l) { 51 public static boolean isShapeValid(List<? extends List<?>> l) {
48 return l != null && l.stream().mapToInt(List::size).allMatch(s -> s == l.get(0).size()); 52 return l != null && l.stream().mapToInt(List::size).allMatch(s -> s == l.get(0).size());
49 } 53 }
50
51 private Matrix() {
52 // static class
53 }
54} 54}