Skip to content

Instantly share code, notes, and snippets.

@zhanggang807
Created October 9, 2018 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhanggang807/cbfa1d30d4959393f45c2e538ff0a2c0 to your computer and use it in GitHub Desktop.
Save zhanggang807/cbfa1d30d4959393f45c2e538ff0a2c0 to your computer and use it in GitHub Desktop.
guava 两个集合弄找差集
Collection<Long> idOnlyInList1 = Collections2.filter(idList1, Predicates.not(Predicates.in(idList2)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment