Bharat saraswal
Committed by Gerrit Code Review

[ONOS-3116] flow classifier id : added method to handle string.

Change-Id: Ib73ef535b48f4bf8792ce8f9d301080d0584e2a1
...@@ -46,6 +46,16 @@ public final class FlowClassifierId { ...@@ -46,6 +46,16 @@ public final class FlowClassifierId {
46 return new FlowClassifierId(flowClassifierId); 46 return new FlowClassifierId(flowClassifierId);
47 } 47 }
48 48
49 + /**
50 + * Returns new flow classifier id.
51 + *
52 + * @param flowClassifierId flow classifier id
53 + * @return new flow classifier id
54 + */
55 + public static FlowClassifierId flowClassifierId(final String flowClassifierId) {
56 + return new FlowClassifierId(UUID.fromString(flowClassifierId));
57 + }
58 +
49 @Override 59 @Override
50 public int hashCode() { 60 public int hashCode() {
51 return Objects.hashCode(this.flowClassifierId); 61 return Objects.hashCode(this.flowClassifierId);
......