[LIB-8] Update Copyright
[snooker-score-api.git] / src / main / java / org / hedgecode / snooker / compare / RankingComparators.java
index f7551e0..2d1bb56 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017. Developed by Hedgecode.
+ * Copyright (c) 2017-2020. Developed by Hedgecode.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package org.hedgecode.snooker.compare;
 
+import java.io.Serializable;
 import java.util.Comparator;
 
 import org.hedgecode.snooker.api.Ranking;
@@ -42,7 +43,7 @@ public enum RankingComparators {
         return comparator;
     }
 
-    static class PositionComparator implements Comparator<Ranking> {
+    static class PositionComparator implements Comparator<Ranking>, Serializable {
 
         @Override
         public int compare(Ranking ranking1, Ranking ranking2) {
@@ -51,7 +52,7 @@ public enum RankingComparators {
 
     }
 
-    static class SumComparator implements Comparator<Ranking> {
+    static class SumComparator implements Comparator<Ranking>, Serializable {
 
         @Override
         public int compare(Ranking ranking1, Ranking ranking2) {