MCPcopy Create free account
hub / github.com/apache/commons-lang / accept

Method accept

src/main/java/org/apache/commons/lang3/tuple/Pair.java:126–128  ·  view source on GitHub ↗

Accepts this key and value as arguments to the given consumer. @param The kind of thrown exception or error. @param consumer the consumer to call. @throws E Thrown when the consumer fails. @since 3.13.0

(final FailableBiConsumer<L, R, E> consumer)

Source from the content-addressed store, hash-verified

124 * @since 3.13.0
125 */
126 public <E extends Throwable> void accept(final FailableBiConsumer<L, R, E> consumer) throws E {
127 consumer.accept(getKey(), getValue());
128 }
129
130 /**
131 * Applies this key and value as arguments to the given function.

Callers

nothing calls this directly

Calls 3

getKeyMethod · 0.95
getValueMethod · 0.95
acceptMethod · 0.65

Tested by

no test coverage detected