public final VEvent getOccurrence ( final Date date ) throws IOException , URISyntaxException , ParseException { final PeriodList consumedTime = getConsumedTime ( date , date ) ; for ( final Period p : consumedTime ) { if ( p . getStart ( ) . equals ( date ) ) { final VEvent occurrence = ( VEvent ) this . copy ( ) ; occurrence . getProperties ( ) . add ( new RecurrenceId ( date ) ) ; return occurrence ; } } return null ; }
Returns a single occurrence of a recurring event .