public static boolean sameWeek(Calendar cal,IWeekItem week){
  return (cal.get(Calendar.WEEK_OF_YEAR) == week.getWeekInYear() && cal.get(Calendar.YEAR) == week.getYear());
}

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