Class BiMapCollectProcedure<T,​K,​V>

  • All Implemented Interfaces:
    Serializable, Consumer<T>, Procedure<T>

    public final class BiMapCollectProcedure<T,​K,​V>
    extends Object
    implements Procedure<T>
    BiMapCollectProcedure uses a Function to calculate the key for an object and puts the object with the key into the specified BiMap.
    See Also:
    Serialized Form
    • Constructor Detail

      • BiMapCollectProcedure

        public BiMapCollectProcedure​(MutableBiMap<K,​V> newMap,
                                     Function<? super T,​? extends K> newKeyFunction,
                                     Function<? super T,​? extends V> newValueFunction)
    • Method Detail

      • value

        public void value​(T object)
        Specified by:
        value in interface Procedure<T>