Package org.eclipse.collections.impl.block.procedure
package org.eclipse.collections.impl.block.procedure
This package contains implementations of
Procedure
and Procedure2
.-
ClassDescriptionApplies a predicate to an object and increments a count if it returns true.BiMapCollectProcedure<T,
K, V> BiMapCollectProcedure uses a Function to calculate the key for an object and puts the object with the key into the specified BiMap.CaseProcedure allows developers to create an object form of a case statement, which instead of being based on a single switch value is based on a list of predicate / procedure combinations.ChainedProcedure allows a developer to chain together procedure to be executed in sequence.CollectIfProcedure<T,V> CollectionAddProcedure adds elements to the specified collection when one of the block methods are called.CollectionRemoveProcedure removes element from the specified collection when one of the procedure methods are called.CollectProcedure<T,V> Applies a function to an object and adds the result to a target collection.CounterProcedure wraps a specified procedure and keeps track of the number of times it is executed.Applies a predicate to an object and increments a count if it returns true.Applies a function to an object and adds the result to a target fastList.Applies a predicate to an object to determine if it should be added to a target fastList.Applies a predicate to an object to determine if it should be added to a target fastList.FlatCollectProcedure<T,V> Applies a function to an object and adds the result to a target collection.A conditional ObjectIntProcedure that effectively filters which objects should be usedIfProcedure<T>IfProcedure allows developers to evaluate the specified procedure only when either predicate returns true.IfProcedureWith<T,P> A conditional parameterized two argument procedure that effectively filters which objects should be usedInjectIntoProcedure<IV,T> MapCollectProcedure<T,K, V> MapCollectProcedure uses a Function to calculate the key for an object and puts the object with the key into the specified Map.MapEntryToProcedure2<K,V> MapEntryToProcedure2 translates the result of calling entrySet() on a Map, which results in a collection of Map.Entry objects into corresponding Procedure2s.MapPutProcedure<K,V> Transfers keys and values from one map to anotherMaxByProcedure<T,V extends Comparable<? super V>> Implementation ofProcedure
that holds on to the maximum element seen so far, determined by theComparator
.MaxProcedure<T>MinByProcedure<T,V extends Comparable<? super V>> Implementation ofProcedure
that holds on to the minimum element seen so far, determined by theComparator
MinProcedure<T>MultimapEachPutProcedure uses a Function to calculate the keys for an object and puts the object with each of the keys into the specifiedMutableMultimap
.MultimapKeyValuePutAllProcedure uses two Functions to calculate the key and values for an object and puts the key with all values into the specifiedMutableMultimap
.MultimapKeyValuePutProcedure<T,K, V> MultimapKeyValuePutProcedure uses two Functions to calculate the key and value for an object and puts the key and value into the specifiedMutableMultimap
.MultimapPutProcedure<K,V> MultimapPutProcedure uses a Function to calculate the key for an object and puts the object with the key into the specifiedMutableMultimap
.MutatingAggregationProcedure<T,K, V> This procedure is used to apply an aggregate function like sum on a grouped set of data.This procedure is used to apply an aggregate function like sum on a grouped set of data.Applies a predicate to an object to determine if it should be added to a target collection.CallsClass.isInstance(Object)
on an object to determine if it should be added to a target collection.Applies a predicate to an object to determine if it should be added to a target collection.ZipWithIndexProcedure<T,R extends Collection<Pair<T, Integer>>> Creates a PairImpl of objects and their indexes and adds the result to a target collection.