blob: a617839acc2263f769b447cb14ba95090457b186 [file] [log] [blame]
Pavlin Radoslavov9f9d5492013-12-04 18:21:48 -08001package net.onrc.onos.ofcontroller.util;
2
3/**
4 * A generic class representing a pair of two values.
5 */
6public class Pair<L, R> {
7 public L left; // The first value in the pair
8 public R right; // The second value in the pair
9
10 /**
11 * Constructor for a pair of two values.
12 *
13 * @param left the first value in the pair.
14 * @param right the second value in the pair.
15 */
16 public Pair(L left, R right) {
17 this.left = left;
18 this.right = right;
19 }
20}