public static FlowId getDefaultInstance(String defaultValue) { return new FlowId(defaultValue); }
@Override public boolean equals(java.lang.Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } FlowAndStatisticsMapListKey other = (FlowAndStatisticsMapListKey) obj; if (_flowId == null) { if (other._flowId != null) { return false; } } else if(!_flowId.equals(other._flowId)) { return false; } return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_flowId == null) ? 0 : _flowId.hashCode()); return result; }
@Override public FlowsStatisticsUpdate createNotification(final FlowStatistics o, final InstanceIdentifier<FlowStatistics> path) { Preconditions.checkArgument(o != null); Preconditions.checkArgument(path != null); final FlowAndStatisticsMapListBuilder fsmlBuilder = new FlowAndStatisticsMapListBuilder(o); fsmlBuilder.setFlowId(new FlowId(path.firstKeyOf(Flow.class, FlowKey.class).getId().getValue())); final FlowsStatisticsUpdateBuilder builder = new FlowsStatisticsUpdateBuilder(); builder.setId(getNodeId(path)); builder.setMoreReplies(Boolean.FALSE); // NOTE : fix if it needs, but we have to ask DataStore for the NodeConnector list builder.setNodeConnector(Collections.<NodeConnector>emptyList()); builder.setFlowAndStatisticsMapList(Collections.singletonList(fsmlBuilder.build())); return builder.build(); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_bufferId == null) ? 0 : _bufferId.hashCode()); result = prime * result + ((_byteCount == null) ? 0 : _byteCount.hashCode()); result = prime * result + ((_containerName == null) ? 0 : _containerName.hashCode()); result = prime * result + ((_cookie == null) ? 0 : _cookie.hashCode()); result = prime * result + ((_cookieMask == null) ? 0 : _cookieMask.hashCode()); result = prime * result + ((_duration == null) ? 0 : _duration.hashCode()); result = prime * result + ((_flags == null) ? 0 : _flags.hashCode()); result = prime * result + ((_flowId == null) ? 0 : _flowId.hashCode()); result = prime * result + ((_flowName == null) ? 0 : _flowName.hashCode()); result = prime * result + ((_hardTimeout == null) ? 0 : _hardTimeout.hashCode()); result = prime * result + ((_idleTimeout == null) ? 0 : _idleTimeout.hashCode()); result = prime * result + ((_instructions == null) ? 0 : _instructions.hashCode()); result = prime * result + ((_key == null) ? 0 : _key.hashCode()); result = prime * result + ((_match == null) ? 0 : _match.hashCode()); result = prime * result + ((_outGroup == null) ? 0 : _outGroup.hashCode()); result = prime * result + ((_outPort == null) ? 0 : _outPort.hashCode()); result = prime * result + ((_packetCount == null) ? 0 : _packetCount.hashCode()); result = prime * result + ((_priority == null) ? 0 : _priority.hashCode()); result = prime * result + ((_tableId == null) ? 0 : _tableId.hashCode()); result = prime * result + ((_barrier == null) ? 0 : _barrier.hashCode()); result = prime * result + ((_installHw == null) ? 0 : _installHw.hashCode()); result = prime * result + ((_strict == null) ? 0 : _strict.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
return false; } else if(!_flowId.equals(other.getFlowId())) { return false;