Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.procedure

public final Class BiMapCollectProcedure<T, K, V>

extends Object
implements Procedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
org.eclipse.collections.api.bimap.MutableBiMap, org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.procedure.Procedure

BiMapCollectProcedure uses a Function to calculate the key for an object and puts the object with the key into the specified BiMap.

Field Summary

Modifier and TypeField and Description
private final MutableBiMap<K, V>
private final Function<? super T, ? extends K>
private static final long
private final Function<? super T, ? extends V>

Constructor Summary

AccessConstructor and Description
public
BiMapCollectProcedure(MutableBiMap<K, V> newMap, Function<? super T, ? extends K> newKeyFunction, Function<? super T, ? extends V> newValueFunction)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

biMapback to summary
private final MutableBiMap<K, V> biMap
keyFunctionback to summary
private final Function<? super T, ? extends K> keyFunction
serialVersionUIDback to summary
private static final long serialVersionUID
valueFunctionback to summary
private final Function<? super T, ? extends V> valueFunction

Constructor Detail

BiMapCollectProcedureback to summary
public BiMapCollectProcedure(MutableBiMap<K, V> newMap, Function<? super T, ? extends K> newKeyFunction, Function<? super T, ? extends V> newValueFunction)

Method Detail

valueback to summary
public void value(T object)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override