src/edu/kit/informatik/calendar_sample/DateUtil.java
/**
     * Returns the appointment represented by the specified argument.
     *
     * <p>The specified argument has to match the format:
     * <blockquote><pre>
     * &lt;from&gt; &lt;to&gt; &lt;name&gt;</pre>
     * </blockquote>
     *
     * @param  charSequence the input argument
     * @return the appointment
     * @throws NullPointerException if {@code charSequence} is {@code null}
     * 
     * @see    #parseDateTime(CharSequence)
     */
Returns the appointment represented by the specified argument.
The specified argument has to match the format:

<from> <to> <name>


@param  charSequence the input argument
@return the appointment
@throws NullPointerException if  charSequence is  null


Returns the appointment represented by the specified argument . The specified argument has to match the format : <from > <to > <name > @param charSequence the input argument @return the appointment @throws NullPointerException if charSequence is null
public static Appointment parseAppointment(
            final CharSequence charSequence) {
        final Matcher m = PatternHolder.APPOINTMENT_RE.matcher(charSequence);
        if (!m.matches())
            throw new IllegalArgumentException("Not a valid appointment");
        return new Appointment(m.group(13), dateTime(m, 0), dateTime(m, 6));
    }
public static Appointment parseAppointment ( final CharSequence charSequence ) { final Matcher m = PatternHolder . APPOINTMENT_RE . matcher ( charSequence ) ; if ( ! m . matches ( ) ) throw new IllegalArgumentException ( "Not a valid appointment" ) ; return new Appointment ( m . group ( 13 ) , dateTime ( m , 0 ) , dateTime ( m , 6 ) ) ; }
Returns the appointment represented by the specified argument.
Returns the appointment represented by the specified argument .
////