Class BiMapCollectProcedure<T,​K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Consumer<T>, Procedure<T>

    public final class BiMapCollectProcedure<T,​K,​V>
    extends java.lang.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
    • Field Detail

      • keyFunction

        private final Function<? super T,​? extends K> keyFunction
      • valueFunction

        private final Function<? super T,​? extends V> valueFunction
    • 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>