Merge "Disable syslog in heat-translator for functest integration"
[parser.git] / verigraph / src / it / polito / verigraph / mcnet / components / Tuple.java
1 /*******************************************************************************
2  * Copyright (c) 2017 Politecnico di Torino and others.
3  *
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  *******************************************************************************/
9 package it.polito.verigraph.mcnet.components;
10
11 /** A data structure which is an utility to make a generic couple of objects with different types in Java
12  *
13  */
14 public class Tuple<T, U> {
15     public final T _1;
16     public final U _2;
17
18
19     public Tuple(T arg1,U arg2) {
20         super();
21         this._1 = arg1;
22         this._2 = arg2;
23     }
24
25     public Tuple(){
26         this._1 = null;
27         this._2 = null;
28     }
29
30     @Override
31     public String toString() {
32         return String.format("(%s, %s)", _1, _2);
33     }
34 }