serieshaser.blogg.se

How to use icollections
How to use icollections








how to use icollections

SelectRejected(inputCollection, predicate, rejectedCollection) Select(inputCollection, predicate, outputCollection)

HOW TO USE ICOLLECTIONS CODE

Note: calling the method is equivalent to the following code snippet: If the input predicate is null, no elements are added to Selects all elements from inputCollection into an output and rejected collection,īased on the evaluation of the given predicate.Įlements matching the predicate are added to the outputCollection,Īll other elements are added to the rejectedCollection.

how to use icollections

containsAny public static  boolean containsAny( Collection coll1,.Parameters: coll1 - the first collection, must not be null coll2 - the second collection, must not be null Returns: true iff the intersection of the collections has the same cardinalityĪs the set of unique elements from the second collection Since: 4.0 Depending on the type ofĬollection provided, this method will be much faster than callingĬntainsAll(Collection) instead, though this will come at theĬost of an additional space complexity O(n). With a guaranteed runtime complexity of O(n + m). This method is intended as a replacement for ntainsAll(Collection) Intersection(, ) of coll1 and coll2 has the same cardinality as In other words, this method returns true iff the Which is the same behavior as ntainsAll(Collection). The cardinality of values in coll2 is not taken into account, Returns true iff all elements of coll2 are also contained










How to use icollections