Example usage for org.apache.commons.collections4 MultiValuedMap isEmpty

List of usage examples for org.apache.commons.collections4 MultiValuedMap isEmpty

Introduction

In this page you can find the example usage for org.apache.commons.collections4 MultiValuedMap isEmpty.

Prototype

boolean isEmpty();

Source Link

Document

Returns true if this map contains no key-value mappings.

Usage

From source file:org.phenotips.vocabulary.AbstractCSVAnnotationsExtension.java

@Override
public void extendTerm(VocabularyInputTerm term, Vocabulary vocabulary) {
    MultiValuedMap<String, String> termData = this.data.get(term.getId());
    if (termData == null || termData.isEmpty()) {
        return;/*from  w w  w  .ja v  a2 s .c om*/
    }
    for (Map.Entry<String, Collection<String>> datum : termData.asMap().entrySet()) {
        if (!datum.getValue().isEmpty()) {
            term.set(datum.getKey(), datum.getValue());
        }
    }
}