Pavlin Radoslavov | 9f9d549 | 2013-12-04 18:21:48 -0800 | [diff] [blame^] | 1 | package net.onrc.onos.ofcontroller.util; |
| 2 | |
| 3 | /** |
| 4 | * A generic class representing a pair of two values. |
| 5 | */ |
| 6 | public 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 | } |