File tree 17 files changed +41
-29
lines changed
17 files changed +41
-29
lines changed Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > All Classes (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > All Classes (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > AugmentaP5 (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="../stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="../script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > AugmentaPerson (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="../stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="../script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > InteractiveArea (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="../stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="../script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > RectangleF (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="../stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="../script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > augmentaP5 (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="../stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="../script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > augmentaP5 (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="../stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="../script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > augmentaP5 Class Hierarchy (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="../stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="../script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > Constant Field Values (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > Deprecated List (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > API Help (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > Index (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > Javadocs: AugmentaP5</ title >
7
7
< script type ="text/javascript ">
8
8
targetPage = "" + window . location . search ;
Original file line number Diff line number Diff line change 2
2
<!-- NewPage -->
3
3
< html lang ="en ">
4
4
< head >
5
- <!-- Generated by javadoc (1.8.0_66) on Mon Apr 25 17:53:51 CEST 2016 -->
5
+ <!-- Generated by javadoc (1.8.0_66) on Tue Apr 26 10:18:10 CEST 2016 -->
6
6
< title > Class Hierarchy (Javadocs: AugmentaP5)</ title >
7
- < meta name ="date " content ="2016-04-25 ">
7
+ < meta name ="date " content ="2016-04-26 ">
8
8
< link rel ="stylesheet " type ="text/css " href ="stylesheet.css " title ="Style ">
9
9
< script type ="text/javascript " src ="script.js "> </ script >
10
10
</ head >
Original file line number Diff line number Diff line change @@ -967,6 +967,12 @@ public AugmentaPerson getOldestPerson(){
967
967
if (people .get (key ).age > bestAge ) {
968
968
bestAge = people .get (key ).age ;
969
969
bestPerson = key ;
970
+ }
971
+ // If several persons have the same oldest age, take the one with smallest pid
972
+ else if (people .get (key ).age == bestAge ){
973
+ if (people .get (key ).pid < people .get (bestPerson ).pid ){
974
+ bestPerson = key ;
975
+ }
970
976
}
971
977
}
972
978
AugmentaPerson p = null ;
@@ -986,6 +992,12 @@ public AugmentaPerson getNewestPerson(){
986
992
bestAge = people .get (key ).age ;
987
993
bestPerson = key ;
988
994
}
995
+ // If several persons have the same newest age, take the one with greatest pid
996
+ else if (people .get (key ).age == bestAge ){
997
+ if (people .get (key ).pid > people .get (bestPerson ).pid ){
998
+ bestPerson = key ;
999
+ }
1000
+ }
989
1001
}
990
1002
AugmentaPerson p = null ;
991
1003
if (bestPerson != -1 ){
You can’t perform that action at this time.
0 commit comments