commit | bf78f4ff65b61832b9a6af114cb1ac2a6f6be9a0 | [log] [tgz] |
---|---|---|
author | Bharat saraswal <bharat.saraswal@huawei.com> | Wed Oct 28 19:24:56 2015 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Oct 28 15:52:01 2015 +0000 |
tree | 5e40bfb5c621387c838374ca3699553fc2764a47 | |
parent | fae11ee6685754093823c7ee5d89c227807e5cc9 [diff] |
[ONOS-3116] flow classifier id : added method to handle string. Change-Id: Ib73ef535b48f4bf8792ce8f9d301080d0584e2a1
diff --git a/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/FlowClassifierId.java b/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/FlowClassifierId.java index f47cf7c..af5b910 100644 --- a/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/FlowClassifierId.java +++ b/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/FlowClassifierId.java
@@ -46,6 +46,16 @@ return new FlowClassifierId(flowClassifierId); } + /** + * Returns new flow classifier id. + * + * @param flowClassifierId flow classifier id + * @return new flow classifier id + */ + public static FlowClassifierId flowClassifierId(final String flowClassifierId) { + return new FlowClassifierId(UUID.fromString(flowClassifierId)); + } + @Override public int hashCode() { return Objects.hashCode(this.flowClassifierId);