blob: 4736ed5a2446d3386d0a3307ff72ca60bf8830da [file] [log] [blame]
Pavlin Radoslavov5363c2a2013-02-18 09:55:42 -08001package net.floodlightcontroller.util;
2
3/**
4 * The class representing a Flow Entry ID.
5 */
6public class FlowEntryId {
7 private long value;
8
9 /**
10 * Default constructor.
11 */
12 public FlowEntryId() {
13 this.value = 0;
14 }
15
16 /**
17 * Constructor from an integer value.
18 *
19 * @param value the value to use.
20 */
21 public FlowEntryId(long value) {
22 this.value = value;
23 }
24
25 /**
26 * Get the value of the Flow Entry ID.
27 *
28 * @return the value of the Flow Entry ID.
29 */
30 public long value() { return value; }
31
32 /**
33 * Set the value of the Flow Entry ID.
34 *
35 * @param value the value to set.
36 */
37 public void setValue(long value) {
38 this.value = value;
39 }
40
41 /**
42 * Convert the Flow Entry ID value to a string.
43 *
44 * @return the Flow Entry ID value to a string.
45 */
46 @Override
47 public String toString() {
48 String ret = "";
49 // TODO: Implement it!
50 return ret;
51 }
52}