code: /*
   * Copyright (c) 2008-2019 Emmanuel Dupuy.
   * This project is distributed under the GPLv3 license.
   * This is a Copyleft license that gives the user the right to use,
   * copy and modify the code freely for non-commercial purposes.
   */
  
  package org.jd.gui.util.function;
  
  import java.util.Objects;
  
  @FunctionalInterface
  public interface TriConsumer<T, U, V> {
      void accept(T t, U u, V v);
  
      default TriConsumer<T, U, V> andThen(TriConsumer<? super T, ? super U, ? super V> after) {
          Objects.requireNonNull(after);
  
          return (a, b, c) -> {
              accept(a, b, c);
              after.accept(a, b, c);
          };
      }
  }
  