Skip to content

Instantly share code, notes, and snippets.

@cwensel
Created August 10, 2010 19:06
Show Gist options
  • Select an option

  • Save cwensel/517798 to your computer and use it in GitHub Desktop.

Select an option

Save cwensel/517798 to your computer and use it in GitHub Desktop.
if (!groups.isEmpty()) {
// lets see if we can filter based on groups
List<String> groupNames = reservation.getGroupNames();
if (Collections.disjoint(groups, groupNames)) {
logger.trace("filtering out reservation {} based on groups {}, not part of {}", reservation.getReservationId(), groupNames, groups);
// continue to the next reservation
continue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment