List of usage examples for edu.stanford.nlp.util CollectionUtils containsAny
public static <T> boolean containsAny(Collection<T> collection, Collection<T> toCheck)
From source file:knu.univ.lingvo.coref.Mention.java
License:Open Source License
public boolean isMemberOfSameList(Mention m) { Set<Mention> l1 = belongToLists; Set<Mention> l2 = m.belongToLists; if (l1 != null && l2 != null && CollectionUtils.containsAny(l1, l2)) { return true; } else {//from ww w . j ava 2 s. c om return false; } }