Skip to content
Browse files
IGNITE-16863 Implement compound VersisionedValue
  • Loading branch information
denis-chudov committed May 13, 2022
1 parent 154447c commit fa238da3a209344b13deddd4152b1209b3a93921
Showing 12 changed files with 784 additions and 355 deletions.

Large diffs are not rendered by default.

@@ -0,0 +1,57 @@
* 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
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* See the License for the specific language governing permissions and
* limitations under the License.

package org.apache.ignite.lang;

import java.util.Objects;

* Represents a closure that accepts three input parameters and returns no result.
* @param <T> The type of the first parameter to the closure.
* @param <U> The type of the second parameter to the closure.
* @param <V> The type of the third parameter to the closure.
public interface IgniteTriConsumer<T, U, V> {
* Performs the operation on the given arguments.
* @param t The first argument.
* @param u The second argument.
* @param v The third argument.
void accept(T t, U u, V v);

* Returns a composed {@code IgniteTriConsumer} that performs, in sequence, this operation followed by the {@code after} closure.
* If {@code after} throws an exception, it should be handled by the caller of the closure. If performing this closure throws
* an exception, the {@code after} closure will not be performed.
* @param after Closure to execute after this {@code IgniteTriConsumer} completes.
* @return Composed {@code IgniteTriConsumer}.
default IgniteTriConsumer<T, U, V> andThen(IgniteTriConsumer<? super T, ? super U, ? super V> after) {

return (t, u, v) -> {
accept(t, u, v);

after.accept(t, u, v);

0 comments on commit fa238da

Please sign in to comment.