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

Change-Id: Ib73ef535b48f4bf8792ce8f9d301080d0584e2a1
This commit is contained in:
Bharat saraswal 2015-10-28 19:24:56 +05:30 committed by Gerrit Code Review
parent fae11ee668
commit bf78f4ff65

View File

@ -46,6 +46,16 @@ public final class FlowClassifierId {
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);