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
/
Size.java
diff --git
a/src/Size.java
b/src/Size.java
index dfea96cdd8226c8dba12b50fa86423ceb2635658..a526fab6a01a3fb9ce5d5ce31b5f39aef3d3bae2 100644
(file)
--- a/
src/Size.java
+++ b/
src/Size.java
@@
-1,5
+1,6
@@
+import java.util.Comparator;
-public class Size {
+public class Size
implements Comparable<Size>
{
private int max = 240;
private int min = 20;
private int size;
private int max = 240;
private int min = 20;
private int size;
@@
-23,4
+24,9
@@
public class Size {
private boolean validateSize(int size) {
return (size > max || size < min);
}
private boolean validateSize(int size) {
return (size > max || size < min);
}
+
+ @Override
+ public int compareTo(Size size) {
+ return 0;
+ }
}
}