Proxies an consumer spying for parameter.

@param <T> the consumer parameter type
@param consumer the consumer to be spied
@param param a box that will be containing the spied parameter
@return the proxied consumer
337930
public static <T> Consumer<T> spy(Consumer<T> consumer, Box<T> param) {
        return new CapturingConsumer<T>(consumer, param);
    }
608421
@Nonnull
	public static <T> LSupplierBuilder<T> supplier(Consumer<LSupplier<T>> consumer) {
		return new LSupplierBuilder(consumer);
	}
740061
@Nonnull
	public static <T1, T2> LBiObjDblPredicateBuilder<T1, T2> biObjDblPredicate(Consumer<LBiObjDblPredicate<T1, T2>> consumer) {
		return new LBiObjDblPredicateBuilder(consumer);
	}
373197
@Nonnull
	public static <T> LPredicateBuilder<T> predicate(Consumer<LPredicate<T>> consumer) {
		return new LPredicateBuilder(consumer);
	}
286142
public static <T> T consumeAndGetSelf(T target,
            Consumer<T> targetConsumer) {
        targetConsumer.accept(target);
        return target;
    }
441051
public static <T, E extends Exception> Consumer<T> sneaked(SneakyConsumer<T, E> consumer) {
    return t -> {
      @SuppressWarnings("unchecked")
      SneakyConsumer<T, RuntimeException> casedConsumer =
          (SneakyConsumer<T, RuntimeException>) consumer;
      casedConsumer.accept(t);
    };
  }
176339
@Nonnull
	public static <T> ConsumerBuilder<T> consumer(Consumer<Consumer<T>> consumer) {
		return new ConsumerBuilder(consumer);
	}
570805
public static <T> Runnable curry(Consumer<T> consumer, T value) {
        dbc.precondition(consumer != null, "cannot bind parameter of a null consumer");
        return () -> consumer.accept(value);
    }
679730
@Override
   public void forEach(Consumer<? super List<String>> consumer) {
      try (Stream<List<String>> stream = stream()) {
         stream.forEach(consumer);
      }
   }
312058
@SuppressWarnings("unchecked")
    public void forEach(final Consumer<V> consumer)
    {
        for (final Object value : values)
        {
            if (null != value)
            {
                consumer.accept((V)value);
            }
        }
    }
71193
@Nonnull
	public static <T> LObjLongConsumerBuilder<T> objLongConsumer(Consumer<LObjLongConsumer<T>> consumer) {
		return new LObjLongConsumerBuilder(consumer);
	}
1329979
protected final void registerConsumer( AbstractMessageConsumer consumer )
    {
        if (consumersMap.put(consumer.getId(),consumer) != null)
        	throw new IllegalArgumentException("Consumer "+consumer.getId()+" already exists");
    }
296517
public static <T> Position.Writable<T> writable(final Typed<T> typed, Consumer<T> consumer) {
        return writable(Validate.notNull(typed, "type").getType(), consumer);
    }
535073
@Nonnull
	public static <T> LObjBiIntPredicateBuilder<T> objBiIntPredicate(Consumer<LObjBiIntPredicate<T>> consumer) {
		return new LObjBiIntPredicateBuilder(consumer);
	}
1128618
public FluentMatchingC<T> then(Consumer2<A, B> consumer) {
    return then(fluentMatchingC, consumer);
  }
125244
public static <T, U> BiConsumer<T, U> biConsumer(CheckedBiConsumer<T, U> consumer) {
        return biConsumer(consumer, THROWABLE_TO_RUNTIME_EXCEPTION);
    }
730211
public static <T> ObjDoubleConsumer<T> objDoubleConsumer(CheckedObjDoubleConsumer<T> consumer) {
        return objDoubleConsumer(consumer, THROWABLE_TO_RUNTIME_EXCEPTION);
    }