Ayaka Koshibe | 414196d | 2014-09-17 13:46:43 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.net.flow; |
2 | |||||
3 | /** | ||||
4 | * Representation of a Flow ID. | ||||
5 | */ | ||||
6 | public final class FlowId { | ||||
7 | |||||
8 | private final int flowid; | ||||
9 | |||||
10 | private FlowId(int id) { | ||||
11 | this.flowid = id; | ||||
12 | } | ||||
13 | |||||
14 | public FlowId valueOf(int id) { | ||||
15 | return new FlowId(id); | ||||
16 | } | ||||
17 | |||||
18 | public int value() { | ||||
19 | return flowid; | ||||
20 | } | ||||
21 | } |