org.apache.commons.collections.collection.CompositeCollection Java Examples

The following examples show how to use org.apache.commons.collections.collection.CompositeCollection. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CompositeDomainObjectSet.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public CompositeDomainObjectSet(Class<T> type) {
    //noinspection unchecked
    super(type, new CompositeCollection());
}
 
Example #2
Source File: CompositeDomainObjectSet.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@SuppressWarnings("unchecked")
protected CompositeCollection getStore() {
    return (CompositeCollection)super.getStore();
}
 
Example #3
Source File: CompositeDomainObjectSet.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public CompositeDomainObjectSet(Class<T> type) {
    //noinspection unchecked
    super(type, new CompositeCollection());
}
 
Example #4
Source File: CompositeDomainObjectSet.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@SuppressWarnings("unchecked")
protected CompositeCollection getStore() {
    return (CompositeCollection)super.getStore();
}
 
Example #5
Source File: CompositeDomainObjectSet.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public CompositeDomainObjectSet(Class<T> type) {
    //noinspection unchecked
    super(type, new CompositeCollection());
}
 
Example #6
Source File: CompositeDomainObjectSet.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@SuppressWarnings("unchecked")
protected CompositeCollection getStore() {
    return (CompositeCollection)super.getStore();
}
 
Example #7
Source File: CompositeDomainObjectSet.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public CompositeDomainObjectSet(Class<T> type) {
    //noinspection unchecked
    super(type, new CompositeCollection());
}
 
Example #8
Source File: CompositeDomainObjectSet.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@SuppressWarnings("unchecked")
protected CompositeCollection getStore() {
    return (CompositeCollection)super.getStore();
}
 
Example #9
Source File: CompositeMap.java    From Penetration_Testing_POC with Apache License 2.0 3 votes vote down vote up
/**
 * Returns a collection view of the values contained in this map.  The
 * collection is backed by the map, so changes to the map are reflected in
 * the collection, and vice-versa.  If the map is modified while an
 * iteration over the collection is in progress, the results of the
 * iteration are undefined.  The collection supports element removal,
 * which removes the corresponding mapping from the map, via the
 * <tt>Iterator.remove</tt>, <tt>Collection.remove</tt>,
 * <tt>removeAll</tt>, <tt>retainAll</tt> and <tt>clear</tt> operations.
 * It does not support the add or <tt>addAll</tt> operations.
 *
 * @return a collection view of the values contained in this map.
 */
public Collection values() {
    CompositeCollection keys = new CompositeCollection();
    for (int i = this.composite.length - 1; i >= 0; --i) {
        keys.addComposited(this.composite[i].values());
    }
    return keys;
}