org.opendaylight.genius.mdsalutil.matches package is CS clean now.
Change-Id: Iea28d160dc90696a676a529630d51b7da95d6091
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchArpOp that = (MatchArpOp) o;
+ MatchArpOp that = (MatchArpOp) other;
return op == that.op;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchArpSha that = (MatchArpSha) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchArpSha that = (MatchArpSha) other;
return address != null ? address.equals(that.address) : that.address == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchArpSpa that = (MatchArpSpa) o;
+ MatchArpSpa that = (MatchArpSpa) other;
return address != null ? address.equals(that.address) : that.address == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchArpTha that = (MatchArpTha) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchArpTha that = (MatchArpTha) other;
return address != null ? address.equals(that.address) : that.address == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchArpTpa that = (MatchArpTpa) o;
+ MatchArpTpa that = (MatchArpTpa) other;
return address != null ? address.equals(that.address) : that.address == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchEthernetDestination that = (MatchEthernetDestination) o;
+ MatchEthernetDestination that = (MatchEthernetDestination) other;
- if (address != null ? !address.equals(that.address) : that.address != null) return false;
+ if (address != null ? !address.equals(that.address) : that.address != null) {
+ return false;
+ }
return mask != null ? mask.equals(that.mask) : that.mask == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchEthernetSource that = (MatchEthernetSource) o;
+ MatchEthernetSource that = (MatchEthernetSource) other;
- if (address != null ? !address.equals(that.address) : that.address != null) return false;
+ if (address != null ? !address.equals(that.address) : that.address != null) {
+ return false;
+ }
return mask != null ? mask.equals(that.mask) : that.mask == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchEthernetType that = (MatchEthernetType) o;
+ MatchEthernetType that = (MatchEthernetType) other;
return type == that.type;
}
@Override
public int hashCode() {
int result = super.hashCode();
- result = 31 * result + (int) (type ^ (type >>> 32));
+ result = 31 * result + (int) (type ^ type >>> 32);
return result;
}
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchIcmpv4 that = (MatchIcmpv4) o;
+ MatchIcmpv4 that = (MatchIcmpv4) other;
- if (type != that.type) return false;
+ if (type != that.type) {
+ return false;
+ }
return code == that.code;
}
@Override
public int hashCode() {
int result = super.hashCode();
- result = 31 * result + (int) type;
- result = 31 * result + (int) code;
+ result = 31 * result + type;
+ result = 31 * result + code;
return result;
}
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchIcmpv6 that = (MatchIcmpv6) o;
+ MatchIcmpv6 that = (MatchIcmpv6) other;
- if (type != that.type) return false;
+ if (type != that.type) {
+ return false;
+ }
return code == that.code;
}
@Override
public int hashCode() {
int result = super.hashCode();
- result = 31 * result + (int) type;
- result = 31 * result + (int) code;
+ result = 31 * result + type;
+ result = 31 * result + code;
return result;
}
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchInPort that = (MatchInPort) o;
+ MatchInPort that = (MatchInPort) other;
- if (portNumber != that.portNumber) return false;
+ if (portNumber != that.portNumber) {
+ return false;
+ }
return dpId != null ? dpId.equals(that.dpId) : that.dpId == null;
}
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (dpId != null ? dpId.hashCode() : 0);
- result = 31 * result + (int) (portNumber ^ (portNumber >>> 32));
+ result = 31 * result + (int) (portNumber ^ portNumber >>> 32);
return result;
}
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchIpProtocol that = (MatchIpProtocol) o;
+ MatchIpProtocol that = (MatchIpProtocol) other;
return protocol == that.protocol;
}
@Override
public int hashCode() {
int result = super.hashCode();
- result = 31 * result + (int) protocol;
+ result = 31 * result + protocol;
return result;
}
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchIpv4Destination that = (MatchIpv4Destination) o;
+ MatchIpv4Destination that = (MatchIpv4Destination) other;
return prefix != null ? prefix.equals(that.prefix) : that.prefix == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchIpv4Source that = (MatchIpv4Source) o;
+ MatchIpv4Source that = (MatchIpv4Source) other;
return prefix != null ? prefix.equals(that.prefix) : that.prefix == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchIpv6Destination that = (MatchIpv6Destination) o;
+ MatchIpv6Destination that = (MatchIpv6Destination) other;
return prefix != null ? prefix.equals(that.prefix) : that.prefix == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchIpv6NdTarget that = (MatchIpv6NdTarget) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchIpv6NdTarget that = (MatchIpv6NdTarget) other;
return address != null ? address.equals(that.address) : that.address == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchIpv6Source that = (MatchIpv6Source) o;
+ MatchIpv6Source that = (MatchIpv6Source) other;
return prefix != null ? prefix.equals(that.prefix) : that.prefix == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchMetadata that = (MatchMetadata) o;
+ MatchMetadata that = (MatchMetadata) other;
- if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false;
+ if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) {
+ return false;
+ }
return mask != null ? mask.equals(that.mask) : that.mask == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchMplsLabel that = (MatchMplsLabel) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchMplsLabel that = (MatchMplsLabel) other;
return label == that.label;
}
@Override
public int hashCode() {
int result = super.hashCode();
- result = 31 * result + (int) (label ^ (label >>> 32));
+ result = 31 * result + (int) (label ^ label >>> 32);
return result;
}
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchPbbIsid that = (MatchPbbIsid) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchPbbIsid that = (MatchPbbIsid) other;
return isid == that.isid;
}
@Override
public int hashCode() {
int result = super.hashCode();
- result = 31 * result + (int) (isid ^ (isid >>> 32));
+ result = 31 * result + (int) (isid ^ isid >>> 32);
return result;
}
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchTcpDestinationPort that = (MatchTcpDestinationPort) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchTcpDestinationPort that = (MatchTcpDestinationPort) other;
return port == that.port;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchTcpFlags that = (MatchTcpFlags) o;
+ MatchTcpFlags that = (MatchTcpFlags) other;
return flags == that.flags;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchTcpSourcePort that = (MatchTcpSourcePort) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchTcpSourcePort that = (MatchTcpSourcePort) other;
return port == that.port;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchTunnelId that = (MatchTunnelId) o;
+ MatchTunnelId that = (MatchTunnelId) other;
- if (tunnelId != null ? !tunnelId.equals(that.tunnelId) : that.tunnelId != null) return false;
+ if (tunnelId != null ? !tunnelId.equals(that.tunnelId) : that.tunnelId != null) {
+ return false;
+ }
return tunnelMask != null ? tunnelMask.equals(that.tunnelMask) : that.tunnelMask == null;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchUdpDestinationPort that = (MatchUdpDestinationPort) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchUdpDestinationPort that = (MatchUdpDestinationPort) other;
return port == that.port;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
-
- MatchUdpSourcePort that = (MatchUdpSourcePort) o;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
+
+ MatchUdpSourcePort that = (MatchUdpSourcePort) other;
return port == that.port;
}
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
+ public boolean equals(Object other) {
+ if (this == other) {
+ return true;
+ }
+ if (other == null || getClass() != other.getClass()) {
+ return false;
+ }
+ if (!super.equals(other)) {
+ return false;
+ }
- MatchVlanVid that = (MatchVlanVid) o;
+ MatchVlanVid that = (MatchVlanVid) other;
return vlanId == that.vlanId;
}