ec75598b5e31cb2af80c90ec56537022f6bea69a
[iot2.git] / benchmarks / IrrigationController / Tuple.java
1 package IrrigationController;
2
3 /** Class Tuple used for storing a pair of objects together
4  *
5  * Referenced from: http://stackoverflow.com/questions/2670982/using-pairs-or-2-tuples-in-java
6  *
7  * @author      Ali Younis <ayounis @ uci.edu>
8  * @version     1.0
9  * @since       2016-01-27
10  */
11
12 public class Tuple<X, Y> {
13
14         // The tuple object internal objects have no protection
15         // Assume that the user will use these in a safe way
16         public final X x;
17         public final Y y;
18
19
20         /** Constructor
21          *
22          *   @param x [X], x value of tuple.
23          *   @param y [Y], y value of tuple.
24          *
25          */
26         public Tuple(X x, Y y) {
27                 this.x = x;
28                 this.y = y;
29         }
30 }