blob: aebb0c7f11758597cb1344cccc264d7f687d3e6b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.tracecompass.incubator.internal.xaf.core.statemachine.variable.utils;
/**
* Class used to represent an action to be executed on a map key when merging
* two keys in one.
*
* @author Raphaël Beamonte
* @param <K>
* The type of the keys
*/
public abstract class ActionOnMapKey<K> {
/**
* The action to execute
*
* @param key1
* The first key
* @param key2
* The second key
* @return The new key
*/
public abstract K execute(K key1, K key2);
}