repositories
/
Persons_Comparator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Person class and attributes implements Comparable.
[Persons_Comparator.git]
/
src
/
Weight.java
diff --git
a/src/Weight.java
b/src/Weight.java
index 2a8c8127d7cb17f63cbe5aa8e6a98a26209a3f24..b0264faa591187841e4345f0a94b00e0d9347f63 100644
(file)
--- a/
src/Weight.java
+++ b/
src/Weight.java
@@
-1,4
+1,4
@@
-public class Weight {
+public class Weight
implements Comparable<Weight>
{
private int weight;
Weight(int weight) {
private int weight;
Weight(int weight) {
@@
-20,4
+20,9
@@
public class Weight {
private boolean validateWeight(int weight) {
return (weight > 0);
}
private boolean validateWeight(int weight) {
return (weight > 0);
}
+
+ @Override
+ public int compareTo(Weight weight) {
+ return 0;
+ }
}
}