public static final int MINIMUM_AGE = 16;
+ public static final int POJAM_AGE = 14;
+
+ public static final int ADULT_AGE = 18;
+
protected User(GigiResultSet rs) {
super(rs.getInt("id"));
updateName(rs);
}
public boolean canAssure() {
- if ( !CalendarUtil.isOfAge(dob, 14)) { // PoJAM
+ if ( !CalendarUtil.isOfAge(dob, POJAM_AGE)) { // PoJAM
return false;
}
if (getAssurancePoints() < 100) {
* @return the maximal points @
*/
public int getMaxAssurePoints() {
- if ( !CalendarUtil.isOfAge(dob, 18)) {
+ if ( !CalendarUtil.isOfAge(dob, ADULT_AGE)) {
return 10; // PoJAM
}