@Test public void testEquals() { new EqualsTester().addEqualityGroup(fiveTuple1, sameAsFiveTuple1).addEqualityGroup(fiveTuple2) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFiveTuple) { final DefaultFiveTuple other = (DefaultFiveTuple) obj; return Objects.equals(this.protocol, other.protocol) && Objects.equals(this.ipSrc, other.ipSrc) && Objects.equals(this.ipDst, other.ipDst) && Objects.equals(this.portSrc, other.portSrc) && Objects.equals(this.portDst, other.portDst); } return false; }
DefaultFiveTuple implements FiveTuple { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFiveTuple) { final DefaultFiveTuple other = (DefaultFiveTuple) obj; return Objects.equals(this.protocol, other.protocol) && Objects.equals(this.ipSrc, other.ipSrc) && Objects.equals(this.ipDst, other.ipDst) && Objects.equals(this.portSrc, other.portSrc) && Objects.equals(this.portDst, other.portDst); } return false; } }
DefaultFiveTuple implements FiveTuple { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFiveTuple) { final DefaultFiveTuple other = (DefaultFiveTuple) obj; return Objects.equals(this.protocol, other.protocol) && Objects.equals(this.ipSrc, other.ipSrc) && Objects.equals(this.ipDst, other.ipDst) && Objects.equals(this.portSrc, other.portSrc) && Objects.equals(this.portDst, other.portDst); } return false; } private  DefaultFiveTuple(byte protocol, IpAddress ipSrc, IpAddress ipDst, PortNumber portSrc, PortNumber portDst,
                             TenantId tenantId, MacAddress macSrc, MacAddress macDst); }
DefaultFiveTuple implements FiveTuple { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFiveTuple) { final DefaultFiveTuple other = (DefaultFiveTuple) obj; return Objects.equals(this.protocol, other.protocol) && Objects.equals(this.ipSrc, other.ipSrc) && Objects.equals(this.ipDst, other.ipDst) && Objects.equals(this.portSrc, other.portSrc) && Objects.equals(this.portDst, other.portDst); } return false; } private  DefaultFiveTuple(byte protocol, IpAddress ipSrc, IpAddress ipDst, PortNumber portSrc, PortNumber portDst,
                             TenantId tenantId, MacAddress macSrc, MacAddress macDst); @Override byte protocol(); @Override IpAddress ipSrc(); @Override IpAddress ipDst(); @Override PortNumber portSrc(); @Override PortNumber portDst(); @Override MacAddress macSrc(); @Override MacAddress macDst(); @Override TenantId tenantId(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static Builder builder(); }
DefaultFiveTuple implements FiveTuple { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof DefaultFiveTuple) { final DefaultFiveTuple other = (DefaultFiveTuple) obj; return Objects.equals(this.protocol, other.protocol) && Objects.equals(this.ipSrc, other.ipSrc) && Objects.equals(this.ipDst, other.ipDst) && Objects.equals(this.portSrc, other.portSrc) && Objects.equals(this.portDst, other.portDst); } return false; } private  DefaultFiveTuple(byte protocol, IpAddress ipSrc, IpAddress ipDst, PortNumber portSrc, PortNumber portDst,
                             TenantId tenantId, MacAddress macSrc, MacAddress macDst); @Override byte protocol(); @Override IpAddress ipSrc(); @Override IpAddress ipDst(); @Override PortNumber portSrc(); @Override PortNumber portDst(); @Override MacAddress macSrc(); @Override MacAddress macDst(); @Override TenantId tenantId(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static Builder builder();  }