src/edu/kit/informatik/calendar/Date.java
/**
     * Compares the object to a given {@linkplain Date} instance and checks if the object is located before in time
     * @param other The {@linkplain Date} instance to compare
     * @return {@code True} if the object is located in time before the given value. {@code False} otherwise
     */
Compares the object to a given  Date instance and checks if the object is located before in time
@param other The  Date instance to compare
@return  True if the object is located in time before the given value.  False otherwise
Compares the object to a given Date instance and checks if the object is located before in time @param other The Date instance to compare @return True if the object is located in time before the given value . False otherwise
public boolean isBefore(Date other) {
        boolean isBefore = false;
        if (year <= other.getYear()) {
            if (year < other.getYear()) {
                isBefore = true;
            } else {
                if (month <= other.getMonthValue()) {
                    if (month < other.getMonthValue()) {
                        isBefore = true;
                    } else {
                        if (day < other.getDayOfMonth()) {
                            isBefore = true;
                        }
                    }
                }
            }
        }
        return isBefore;
    }
public boolean isBefore ( Date other ) { boolean isBefore = false ; if ( year <= other . getYear ( ) ) { if ( year < other . getYear ( ) ) { isBefore = true ; } else { if ( month <= other . getMonthValue ( ) ) { if ( month < other . getMonthValue ( ) ) { isBefore = true ; } else { if ( day < other . getDayOfMonth ( ) ) { isBefore = true ; } } } } } return isBefore ; }
Compares the object to a given {@linkplain Date} instance and checks if the object is located before in time
 @param other The {@linkplain Date} instance to compare
 @return {@code True} if the object is located in time before the given value.
Compares the object to a given { @linkplain Date } instance and checks if the object is located before in time @param other The { @linkplain Date } instance to compare @return { @code True } if the object is located in time before the given value .