1 /* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.adservices.service.common; 18 19 /** 20 * A 4-argument Consumer. 21 * 22 * @param <A> var1 23 * @param <B> var2 24 * @param <C> var3 25 * @param <D> var4 26 */ 27 public interface QuadConsumer<A, B, C, D> { 28 /** 29 * Function that consumes 4 variables. 30 * 31 * @param var1 var1 32 * @param var2 var2 33 * @param var3 var3 34 * @param var4 var4 35 */ accept(A var1, B var2, C var3, D var4)36 void accept(A var1, B var2, C var3, D var4); 37 } 38