Example usage for org.apache.commons.collections4.collection CompositeCollection addComposited

List of usage examples for org.apache.commons.collections4.collection CompositeCollection addComposited

Introduction

In this page you can find the example usage for org.apache.commons.collections4.collection CompositeCollection addComposited.

Prototype

public void addComposited(final Collection<E>... compositeCollections) 

Source Link

Document

Add these Collections to the list of collections in this composite

Usage

From source file:net.ontopia.topicmaps.impl.basic.index.ClassInstanceIndex.java

/**
 * Avoids creating a generic array, which is converted back to list in CompositeCollection.
 *//*from www  .j  ava 2s  . co  m*/
private <T extends TMObjectIF> CompositeCollection<T> createComposite(Collection<Collection<T>> collections) {
    CompositeCollection<T> result = new CompositeCollection<>();
    for (Collection<T> collection : collections) {
        result.addComposited(collection);
    }
    return result;
}