Package org.eclipse.collections.impl.block.procedure
This package contains implementations of
Procedure
and Procedure2
.-
Interface Summary Interface Description DoubleSumResultHolder -
Class Summary Class Description AdaptObjectIntProcedureToProcedure<V> AppendStringProcedure<T> AtomicCountProcedure<T> Applies a predicate to an object and increments a count if it returns true.BagAddOccurrencesProcedure<T> BiMapCollectProcedure<T,K,V> BiMapCollectProcedure uses an Function to calculate the key for an object and puts the object with the key into the specified BiMap.CaseProcedure<T> 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<T> ChainedProcedure allows a developer to chain together procedure to be executed in sequence.CollectIfProcedure<T,V> CollectionAddProcedure<T> CollectionAddProcedure adds elements to the specified collection when one of the block methods are called.CollectionRemoveProcedure<T> 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.ComparatorProcedure<T> CounterProcedure<T> CounterProcedure wraps a specified procedure and keeps track of the number of times it is executed.CountProcedure<T> Applies a predicate to an object and increments a count if it returns true.FastListCollectIfProcedure<T,V> FastListCollectProcedure<T,V> Applies a function to an object and adds the result to a target fastList.FastListRejectProcedure<T> Applies a predicate to an object to determine if it should be added to a target fastList.FastListSelectProcedure<T> 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.GroupByUniqueKeyProcedure<T,K> IfObjectIntProcedure<T> 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 an 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>> MaxComparatorProcedure<T> Implementation ofProcedure
that holds on to the maximum element seen so far, determined by theComparator
.MaxProcedure<T> MinByProcedure<T,V extends Comparable<? super V>> MinComparatorProcedure<T> Implementation ofProcedure
that holds on to the minimum element seen so far, determined by theComparator
MinProcedure<T> MultimapEachPutProcedure<K,V> MultimapEachPutProcedure uses an Function to calculate the keys for an object and puts the object with each of the keys into the specifiedMutableMultimap
.MultimapKeyValuePutAllProcedure<T,K,V> MultimapKeyValuePutAllProcedure uses an 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 an Functions to calculate the key and value for an object and puts the key and value into the specifiedMutableMultimap
.MultimapPutProcedure<K,V> MultimapPutProcedure uses an 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.NonMutatingAggregationProcedure<T,K,V> This procedure is used to apply an aggregate function like sum on a grouped set of data.PartitionPredicate2Procedure<T,P> PartitionProcedure<T> RejectProcedure<T> Applies a predicate to an object to determine if it should be added to a target collection.SelectInstancesOfProcedure<T> CallsClass.isInstance(Object)
on an object to determine if it should be added to a target collection.SelectProcedure<T> Applies a predicate to an object to determine if it should be added to a target collection.SumOfByteProcedure<T> SumOfCharProcedure<T> SumOfDoubleProcedure<T> SumOfFloatProcedure<T> SumOfIntProcedure<T> SumOfLongProcedure<T> SumOfShortProcedure<T> ZipWithIndexProcedure<T,R extends Collection<Pair<T,Integer>>> Creates a PairImpl of objects and their indexes and adds the result to a target collection.