public final boolean includes ( final Date date , final int inclusiveMask ) { boolean includes ; if ( ( inclusiveMask & INCLUSIVE_START ) > 0 ) { includes = ! rangeStart . after ( date ) ; } else { includes = rangeStart . before ( date ) ; } if ( ( inclusiveMask & INCLUSIVE_END ) > 0 ) { includes = includes && ! rangeEnd . before ( date ) ; } else { includes = includes && rangeEnd . after ( date ) ; } return includes ; }
Decides whether a date falls within this period .