-
Notifications
You must be signed in to change notification settings - Fork 10
/
ActionOnMapKey.java
33 lines (31 loc) · 1.03 KB
/
ActionOnMapKey.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*******************************************************************************
* 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);
}