Github user ajs6f commented on a diff in the pull request: https://github.com/apache/jena/pull/120#discussion_r49275522 --- Diff: jena-base/src/main/java/org/apache/jena/atlas/lib/tuple/QuadConsumer.java --- @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.jena.atlas.lib.tuple; + +import java.util.function.Consumer; + +/** + * Represents an operation that accepts four input arguments and returns no result. This is a four-arity specialization + * of {@link Consumer}. Unlike most other functional interfaces, {@code QuadConsumer} is expected to operate via + * side-effects. + * <p> + * This is a functional interface whose functional method is {@link #accept}. + * + * @param <W> the type of the first argument to the operation + * @param <X> the type of the second argument to the operation + * @param <Y> the type of the third argument to the operation + * @param <Z> the type of the fourth argument to the operation + * @see Consumer + */ +@FunctionalInterface +public interface QuadConsumer<W, X, Y, Z> { + + void accept(final W w, final X x, final Y y, final Z z); + + /** + * A specialization of {@link QuadConsumer} in which all arguments are of the same type. + * --- End diff -- Where would you suggest that these new types go? (Perhaps another package in `jena-base`?) If they are not in this package, does that not vitiate your second point (about top-level vs. enclosed)? For a name, how about `TetraFunction` and `TetraOperator`?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---