1 /*******************************************************************************
2 * Copyright (c) 2017 Politecnico di Torino and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Apache License, Version 2.0
6 * which accompanies this distribution, and is available at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *******************************************************************************/
10 package mcnet.components;
12 /** A data structure which is an utility to make a generic couple of objects with different types in Java
15 public class Tuple<T, U> {
20 public Tuple(T arg1,U arg2) {
32 public String toString() {
33 return String.format("(%s, %s)", _1, _2);