mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-25 22:31:07 +02:00
[ONOS-3116] flow classifier id : added method to handle string.
Change-Id: Ib73ef535b48f4bf8792ce8f9d301080d0584e2a1
This commit is contained in:
parent
fae11ee668
commit
bf78f4ff65
@ -46,6 +46,16 @@ public final class FlowClassifierId {
|
|||||||
return new FlowClassifierId(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
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hashCode(this.flowClassifierId);
|
return Objects.hashCode(this.flowClassifierId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user