X-Git-Url: https://git.piment-noir.org/?p=Persons_Comparator.git;a=blobdiff_plain;f=src%2FWeight.java;h=b0264faa591187841e4345f0a94b00e0d9347f63;hp=2a8c8127d7cb17f63cbe5aa8e6a98a26209a3f24;hb=1c1189337121a1baa74961813e619c99b398a333;hpb=bcdec88755a4a44882edfbb96581294f77a6e1ed diff --git a/src/Weight.java b/src/Weight.java index 2a8c812..b0264fa 100644 --- a/src/Weight.java +++ b/src/Weight.java @@ -1,4 +1,4 @@ -public class Weight { +public class Weight implements Comparable { private int weight; Weight(int weight) { @@ -20,4 +20,9 @@ public class Weight { private boolean validateWeight(int weight) { return (weight > 0); } + + @Override + public int compareTo(Weight weight) { + return 0; + } }