Example usage for org.apache.commons.collections.collection CompositeCollection CompositeCollection

List of usage examples for org.apache.commons.collections.collection CompositeCollection CompositeCollection

Introduction

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

Prototype

public CompositeCollection(Collection[] colls) 

Source Link

Document

Create a CompositeCollection with colls as the initial list of composited collections.

Usage

From source file:mondrian.olap.Query.java

/**
 * Returns a collection of all axes, including the slicer as the first
 * element, if there is a slicer./*from  ww  w .  ja  v  a 2  s .c o  m*/
 *
 * @return Collection of all axes including slicer
 */
private Collection<QueryAxis> allAxes() {
    if (slicerAxis == null) {
        return Arrays.asList(axes);
    } else {
        //noinspection unchecked
        return new CompositeCollection(
                new Collection[] { Collections.singletonList(slicerAxis), Arrays.asList(axes) });
    }
}

From source file:org.datacleaner.descriptors.CompositeDescriptorProvider.java

@SuppressWarnings("unchecked")
@Override//  w w w.ja v  a  2s . c om
public Collection<AnalyzerDescriptor<?>> getAnalyzerDescriptors() {
    return new CompositeCollection(
            new Collection[] { delegate1.getAnalyzerDescriptors(), delegate2.getAnalyzerDescriptors() });
}

From source file:org.datacleaner.descriptors.CompositeDescriptorProvider.java

@SuppressWarnings("unchecked")
@Override// w w w  . jav a  2 s . co  m
public Collection<TransformerDescriptor<?>> getTransformerDescriptors() {
    return new CompositeCollection(
            new Collection[] { delegate1.getTransformerDescriptors(), delegate2.getTransformerDescriptors() });
}

From source file:org.datacleaner.descriptors.CompositeDescriptorProvider.java

@SuppressWarnings("unchecked")
@Override// w ww.ja va  2 s.  c o  m
public Collection<FilterDescriptor<?, ?>> getFilterDescriptors() {
    return new CompositeCollection(
            new Collection[] { delegate1.getFilterDescriptors(), delegate2.getFilterDescriptors() });
}

From source file:org.datacleaner.descriptors.CompositeDescriptorProvider.java

@SuppressWarnings("unchecked")
@Override//from   www  .j  a v  a  2s  .  c o  m
public Collection<? extends ComponentDescriptor<?>> getComponentDescriptors() {
    return new CompositeCollection(
            new Collection[] { delegate1.getComponentDescriptors(), delegate2.getComponentDescriptors() });
}

From source file:org.datacleaner.descriptors.CompositeDescriptorProvider.java

@SuppressWarnings("unchecked")
@Override/*w ww . j  a v  a 2s.c  o  m*/
public Collection<? extends ComponentDescriptor<?>> getComponentDescriptorsOfSuperCategory(
        ComponentSuperCategory category) {
    return new CompositeCollection(
            new Collection[] { delegate1.getComponentDescriptorsOfSuperCategory(category),
                    delegate2.getComponentDescriptorsOfSuperCategory(category) });
}

From source file:org.datacleaner.descriptors.CompositeDescriptorProvider.java

@SuppressWarnings("unchecked")
@Override/*  ww  w  . j a  va2s .  c o m*/
public Collection<RendererBeanDescriptor<?>> getRendererBeanDescriptors() {
    return new CompositeCollection(new Collection[] { delegate1.getRendererBeanDescriptors(),
            delegate2.getRendererBeanDescriptors() });
}