congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CompositeCollection.setMutator
Code IndexAdd Tabnine to your IDE (free)

How to use
setMutator
method
in
org.apache.commons.collections.collection.CompositeCollection

Best Java code snippets using org.apache.commons.collections.collection.CompositeCollection.setMutator (Showing top 10 results out of 315)

origin: commons-collections/commons-collections

/**
 * This can receive either a <code>CompositeCollection.CollectionMutator</code>
 * or a <code>CompositeSet.SetMutator</code>. If a
 * <code>CompositeCollection.CollectionMutator</code> is used than conflicts when adding
 * composited sets will throw IllegalArgumentException
 * <p>
 */
public void setMutator(CollectionMutator mutator) {
  super.setMutator(mutator);
}

origin: wildfly/wildfly

/**
 * This can receive either a <code>CompositeCollection.CollectionMutator</code>
 * or a <code>CompositeSet.SetMutator</code>. If a
 * <code>CompositeCollection.CollectionMutator</code> is used than conflicts when adding
 * composited sets will throw IllegalArgumentException
 * <p>
 */
public void setMutator(CollectionMutator mutator) {
  super.setMutator(mutator);
}

origin: commons-collections/commons-collections

protected void setUpMutatorTest() {
  setUpTest();
  c.setMutator(new CompositeCollection.CollectionMutator() {
    public boolean add(CompositeCollection composite, 
    Collection[] collections, Object obj) {
      for (int i = 0; i < collections.length; i++) {
        collections[i].add(obj);
      }
      return true;
    }
    
    public boolean addAll(CompositeCollection composite, 
    Collection[] collections, Collection coll) {
      for (int i = 0; i < collections.length; i++) {
        collections[i].addAll(coll);
      }
      return true;
    }
    
    public boolean remove(CompositeCollection composite, 
    Collection[] collections, Object obj) {
      for (int i = 0; i < collections.length; i++) {
        collections[i].remove(obj);
      }
      return true;
    }
  });
}
    
origin: commons-collections/commons-collections

public void testAddAllMutator() {
  setUpTest();
  c.setMutator(new CompositeCollection.CollectionMutator() {
    public boolean add(CompositeCollection composite, 
    Collection[] collections, Object obj) {
origin: commons-collections/commons-collections

public void testAddMutator() {
  setUpTest();
  c.setMutator(new CompositeCollection.CollectionMutator() {
    public boolean add(CompositeCollection composite, 
    Collection[] collections, Object obj) {
origin: org.apache.directory.api/api-ldap-client-all

/**
 * This can receive either a <code>CompositeCollection.CollectionMutator</code>
 * or a <code>CompositeSet.SetMutator</code>. If a
 * <code>CompositeCollection.CollectionMutator</code> is used than conflicts when adding
 * composited sets will throw IllegalArgumentException
 * <p>
 */
public void setMutator(CollectionMutator mutator) {
  super.setMutator(mutator);
}

origin: org.apache.openjpa/openjpa-all

/**
 * This can receive either a <code>CompositeCollection.CollectionMutator</code>
 * or a <code>CompositeSet.SetMutator</code>. If a
 * <code>CompositeCollection.CollectionMutator</code> is used than conflicts when adding
 * composited sets will throw IllegalArgumentException
 * <p>
 */
public void setMutator(CollectionMutator mutator) {
  super.setMutator(mutator);
}

origin: org.jboss.eap/wildfly-client-all

/**
 * This can receive either a <code>CompositeCollection.CollectionMutator</code>
 * or a <code>CompositeSet.SetMutator</code>. If a
 * <code>CompositeCollection.CollectionMutator</code> is used than conflicts when adding
 * composited sets will throw IllegalArgumentException
 * <p>
 */
public void setMutator(CollectionMutator mutator) {
  super.setMutator(mutator);
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections

/**
 * This can receive either a <code>CompositeCollection.CollectionMutator</code>
 * or a <code>CompositeSet.SetMutator</code>. If a
 * <code>CompositeCollection.CollectionMutator</code> is used than conflicts when adding
 * composited sets will throw IllegalArgumentException
 * <p>
 */
public void setMutator(CollectionMutator mutator) {
  super.setMutator(mutator);
}
 
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * This can receive either a <code>CompositeCollection.CollectionMutator</code>
 * or a <code>CompositeSet.SetMutator</code>. If a
 * <code>CompositeCollection.CollectionMutator</code> is used than conflicts when adding
 * composited sets will throw IllegalArgumentException
 * <p>
 */
public void setMutator(CollectionMutator mutator) {
  super.setMutator(mutator);
}
 
org.apache.commons.collections.collectionCompositeCollectionsetMutator

Javadoc

Specify a CollectionMutator strategy instance to handle changes.

Popular methods of CompositeCollection

  • <init>
    Create a CompositeCollection with colls as the initial list of composited collections.
  • addComposited
    Add these Collections to the list of collections in this composite
  • contains
    Checks whether this composite collection contains the object. This implementation calls contains() o
  • iterator
    Gets an iterator over all the collections in this composite. This implementation uses an IteratorCha
  • size
    Gets the size of this composite collection. This implementation calls size() on each collection.
  • add
    Adds an object to the collection, throwing UnsupportedOperationException unless a CollectionMutator
  • addAll
    Adds a collection of elements to this collection, throwing UnsupportedOperationException unless a Co
  • clear
    Removes all of the elements from this collection . This implementation calls clear() on each collect
  • containsAll
    Checks whether this composite contains all the elements in the specified collection. This implementa
  • isEmpty
    Checks whether this composite collection is empty. This implementation calls isEmpty() on each colle
  • remove
    Removes an object from the collection, throwing UnsupportedOperationException unless a CollectionMut
  • removeAll
    Removes the elements in the specified collection from this composite collection. This implementatio
  • remove,
  • removeAll,
  • removeComposited,
  • retainAll,
  • toCollection

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now