Example usage for edu.stanford.nlp.util CollectionUtils containsAny

List of usage examples for edu.stanford.nlp.util CollectionUtils containsAny

Introduction

In this page you can find the example usage for edu.stanford.nlp.util CollectionUtils containsAny.

Prototype

public static <T> boolean containsAny(Collection<T> collection, Collection<T> toCheck) 

Source Link

Document

if any item in toCheck is present in collection

Usage

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;
    }
}