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 {
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);
......