-
com.alibaba.fastjson.JSONArray.retainAll()
-
com.hazelcast.core.IList.retainAll()
-
com.hazelcast.core.ISet.retainAll()
-
com.ibm.icu.text.UnicodeSet.retainAll()
Retains EACH of the characters in this string. Note: "ch" == {"c", "h"} If this set already any particular character, it has no effect on that character.
@param s the source string
@return this object, for chaining
@stable ICU 2.0
-
de.ailis.jollada.model.Nodes.retainAll()
-
de.lmu.ifi.dbs.elki.database.ids.HashSetModifiableDBIDs.retainAll()
Retain all elements that also are in the second set.
@param set second set
@return true when modified
-
de.lmu.ifi.dbs.elki.database.ids.ModifiableDBIDs.retainAll()
-
edu.brown.utils.PartitionSet.retainAll()
-
gnu.trove.THashSet.retainAll()
-
gnu.trove.TIntCollection.retainAll()
Removes any values in the collection which are not contained in collection.
@param collection a Collection
value
@return true if the collection was modified by the retain all operation
-
gnu.trove.TLongCollection.retainAll()
Removes any values in the collection which are not contained in collection.
@param collection a Collection
value
@return true if the collection was modified by the retain all operation
-
gnu.trove.list.TIntList.retainAll()
-
gnu.trove.set.TIntSet.retainAll()
Removes any values in the set which are not contained in collection.
@param collection a Collection
value
@return true if the set was modified by the retain all operation
-
it.unimi.dsi.fastutil.ints.IntLinkedOpenHashSet.retainAll()
-
it.unimi.dsi.fastutil.longs.LongSet.retainAll()
-
java.util.ArrayList.retainAll()
Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all of its elements that are not contained in the specified collection.
@param c collection containing elements to be retained in this list
@return {@code true} if this list changed as a result of the call
@throws ClassCastException if the class of an element of this listis incompatible with the specified collection (
optional)
@throws NullPointerException if this list contains a null element and thespecified collection does not permit null elements (
optional), or if the specified collection is null
@see Collection#contains(Object)
-
java.util.Collection.retainAll()
Retains only the elements in this collection that are contained in the specified collection (optional operation). In other words, removes from this collection all of its elements that are not contained in the specified collection.
@param c collection containing elements to be retained in this collection
@return true if this collection changed as a result of the call
@throws UnsupportedOperationException if the retainAll operationis not supported by this collection
@throws ClassCastException if the types of one or more elementsin this collection are incompatible with the specified collection (optional)
@throws NullPointerException if this collection contains one or morenull elements and the specified collection does not permit null elements (optional), or if the specified collection is null
@see #remove(Object)
@see #contains(Object)
-
java.util.HashSet.retainAll()
-
java.util.LinkedHashSet.retainAll()
-
java.util.LinkedList.retainAll()
-
java.util.List.retainAll()
Retains only the elements in this list that are contained in the specified collection (optional operation). In other words, removes from this list all the elements that are not contained in the specified collection.
@param c collection containing elements to be retained in this list
@return true if this list changed as a result of the call
@throws UnsupportedOperationException if the retainAll operationis not supported by this list
@throws ClassCastException if the class of an element of this listis incompatible with the specified collection (optional)
@throws NullPointerException if this list contains a null element and thespecified collection does not permit null elements (optional), or if the specified collection is null
@see #remove(Object)
@see #contains(Object)
-
java.util.NavigableSet.retainAll()
-
java.util.Set.retainAll()
Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
@param c collection containing elements to be retained in this set
@return true if this set changed as a result of the call
@throws UnsupportedOperationException if the retainAll operationis not supported by this set
@throws ClassCastException if the class of an element of this setis incompatible with the specified collection (optional)
@throws NullPointerException if this set contains a null element and thespecified collection does not permit null elements (optional), or if the specified collection is null
@see #remove(Object)
-
java.util.SortedSet.retainAll()
-
java.util.TreeSet.retainAll()
-
java.util.Vector.retainAll()
Retains only the elements in this Vector that are contained in the specified Collection. In other words, removes from this Vector all of its elements that are not contained in the specified Collection.
@param c a collection of elements to be retained in this Vector(all other elements are removed)
@return true if this Vector changed as a result of the call
@throws ClassCastException if the types of one or more elementsin this vector are incompatible with the specified collection (optional)
@throws NullPointerException if this vector contains one or more nullelements and the specified collection does not support null elements (optional), or if the specified collection is null
@since 1.2
-
javolution.util.FastSet.retainAll()
-
joust.utils.data.SymbolSet.retainAll()
-
kodkod.instance.TupleSet.retainAll()
Removes all tuples from this that are not in c, if any, and returns true. Otherwise does nothing and returns false.
@effects this.tuples' = this.tuples & c.elements
@return this.tuples !in c.elements
@throws IllegalArgumentException - some t: c.elements | t.universe != this.universe || t.arity != this.arity
-
kodkod.util.ints.IntSet.retainAll()
Retains only the elements in this set that are contained in the specified set.
@effects this.ints' = this.ints & { i: int | c.contains(i) }
@return this.ints' != this.ints
@throws NullPointerException - s = null
@throws UnsupportedOperationException - this is an unmodifiable set
-
org.apache.commons.collections.Bag.retainAll()
(Violation) Remove any members of the bag that are not in the given collection, respecting cardinality. That is, if the given collection
coll
contains
n
copies of a given object and the bag has
m > n
copies, then delete
m - n
copies from the bag. In addition, if
e
is an object in the bag but
!coll.contains(e)
, then remove
e
and any of its copies.
The {@link Collection#retainAll(Collection)} method specifiesthat cardinality should not be respected; this method should keep all occurrences of every object contained in the given collection.
@param coll the collection to retain
@return true
if this call changed the collection
-
org.apache.commons.collections.primitives.ByteCollection.retainAll()
Removes all of my elements that are not contained in the specified collection (optional operation). (In other words, retains only my elements that are contained in the specified collection.) The behavior of this method is unspecified if the given collection is modified while this method is executing.
@param c the collection of elements to retain
@return true
iff I changed as a result of this call
@throws UnsupportedOperationException when this operation is not supported
-
org.apache.commons.collections.primitives.CharCollection.retainAll()
Removes all of my elements that are not contained in the specified collection (optional operation). (In other words, retains only my elements that are contained in the specified collection.) The behavior of this method is unspecified if the given collection is modified while this method is executing.
@param c the collection of elements to retain
@return true
iff I changed as a result of this call
@throws UnsupportedOperationException when this operation is not supported
-
org.apache.commons.collections.primitives.DoubleCollection.retainAll()
Removes all of my elements that are not contained in the specified collection (optional operation). (In other words, retains only my elements that are contained in the specified collection.) The behavior of this method is unspecified if the given collection is modified while this method is executing.
@param c the collection of elements to retain
@return true
iff I changed as a result of this call
@throws UnsupportedOperationException when this operation is not supported
-
org.apache.commons.collections.primitives.FloatCollection.retainAll()
Removes all of my elements that are not contained in the specified collection (optional operation). (In other words, retains only my elements that are contained in the specified collection.) The behavior of this method is unspecified if the given collection is modified while this method is executing.
@param c the collection of elements to retain
@return true
iff I changed as a result of this call
@throws UnsupportedOperationException when this operation is not supported
-
org.apache.commons.collections.primitives.IntCollection.retainAll()
Removes all of my elements that are not contained in the specified collection (optional operation). (In other words, retains only my elements that are contained in the specified collection.) The behavior of this method is unspecified if the given collection is modified while this method is executing.
@param c the collection of elements to retain
@return true
iff I changed as a result of this call
@throws UnsupportedOperationException when this operation is not supported
-
org.apache.commons.collections.primitives.LongCollection.retainAll()
Removes all of my elements that are not contained in the specified collection (optional operation). (In other words, retains only my elements that are contained in the specified collection.) The behavior of this method is unspecified if the given collection is modified while this method is executing.
@param c the collection of elements to retain
@return true
iff I changed as a result of this call
@throws UnsupportedOperationException when this operation is not supported
-
org.apache.commons.collections.primitives.ShortCollection.retainAll()
Removes all of my elements that are not contained in the specified collection (optional operation). (In other words, retains only my elements that are contained in the specified collection.) The behavior of this method is unspecified if the given collection is modified while this method is executing.
@param c the collection of elements to retain
@return true
iff I changed as a result of this call
@throws UnsupportedOperationException when this operation is not supported
-
org.apache.commons.collections15.Bag.retainAll()
(Violation) Remove any members of the bag that are not in the given collection, respecting cardinality. That is, if the given collection
coll
contains
n
copies of a given object and the bag has
m > n
copies, then delete
m - n
copies from the bag. In addition, if
e
is an object in the bag but
!coll.contains(e)
, then remove
e
and any of its copies.
The {@link Collection#retainAll(Collection)} method specifiesthat cardinality should not be respected; this method should keep all occurrences of every object contained in the given collection.
@param coll the collection to retain
@return true
if this call changed the collection
-
org.apache.mahout.cf.taste.impl.common.FastIDSet.retainAll()
-
org.hibernate.collection.PersistentBag.retainAll()
@see java.util.Collection#retainAll(Collection)
-
org.hibernate.collection.PersistentIdentifierBag.retainAll()
-
org.hibernate.collection.PersistentList.retainAll()
@see java.util.List#retainAll(Collection)
-
org.hibernate.collection.PersistentSet.retainAll()
@see java.util.Set#retainAll(Collection)
-
org.jboss.util.collection.SoftSet.retainAll()
-
org.jgroups.util.AckCollector.retainAll()
-
org.mcarthur.sandy.gwt.event.list.client.EventList.retainAll()
-
org.mcarthur.sandy.gwt.event.list.client.RangedEventList.retainAll()
-
org.openrdf.query.algebra.evaluation.QueryBindingSet.retainAll()
-
org.python.core.PySet.retainAll()