question: public static boolean sameWeek ( Calendar cal , IWeekItem week ) { return ( cal . get ( Calendar . WEEK_OF_YEAR ) == week . getWeekInYear ( ) && cal . get ( Calendar . YEAR ) == week . getYear ( ) ) ; }
target:  Check if Calendar instance's date is in the same week, as the WeekItem instance.