blob: b3c42d61e4c4cd160e44d822cfcca4df64bdee94 [file] [log] [blame]
package net.onrc.onos.api.flowmanager;
import net.onrc.onos.api.batchoperation.BatchOperationTargetId;
/**
* Represents ID for IFlow objects.
*/
public class FlowId extends BatchOperationTargetId {
private final String value;
/**
* Creates new instance with string ID.
*
* @param id String representation of the ID.
*/
public FlowId(String id) {
value = id;
}
@Override
public String toString() {
return value;
}
@Override
public int hashCode() {
return value.hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj instanceof FlowId) {
FlowId other = (FlowId) obj;
return (this.value.equals(other.value));
}
return false;
}
}