@Test public void testEquals() { Builder builder = Layer3Vni.builder() .setBumTransportMethod(BumTransportMethod.UNICAST_FLOOD_GROUP) .setSourceAddress(Ip.parse("1.1.1.1")) .setSrcVrf(DEFAULT_VRF_NAME) .setUdpPort(4096) .setVni(100001) .setBumTransportIps(ImmutableSet.of()); Layer3Vni vni = builder.build(); new EqualsTester() .addEqualityGroup(vni, vni, builder.build()) .addEqualityGroup(builder.setBumTransportMethod(BumTransportMethod.MULTICAST_GROUP).build()) .addEqualityGroup(builder.setSourceAddress(Ip.parse("2.2.2.2")).build()) .addEqualityGroup(builder.setSrcVrf("vrf1").build()) .addEqualityGroup(builder.setUdpPort(4444).build()) .addEqualityGroup(builder.setVni(200000).build()) .addEqualityGroup(builder.setBumTransportIps(ImmutableSet.of(Ip.parse("3.3.3.3"))).build()) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Layer3Vni)) { return false; } Layer3Vni layer3Vni = (Layer3Vni) o; return _vni == layer3Vni._vni && _bumTransportIps.equals(layer3Vni._bumTransportIps) && _bumTransportMethod == layer3Vni._bumTransportMethod && Objects.equals(_sourceAddress, layer3Vni._sourceAddress) && _udpPort.equals(layer3Vni._udpPort) && _srcVrf.equals(layer3Vni._srcVrf); }
Layer3Vni implements Vni { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Layer3Vni)) { return false; } Layer3Vni layer3Vni = (Layer3Vni) o; return _vni == layer3Vni._vni && _bumTransportIps.equals(layer3Vni._bumTransportIps) && _bumTransportMethod == layer3Vni._bumTransportMethod && Objects.equals(_sourceAddress, layer3Vni._sourceAddress) && _udpPort.equals(layer3Vni._udpPort) && _srcVrf.equals(layer3Vni._srcVrf); } }
Layer3Vni implements Vni { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Layer3Vni)) { return false; } Layer3Vni layer3Vni = (Layer3Vni) o; return _vni == layer3Vni._vni && _bumTransportIps.equals(layer3Vni._bumTransportIps) && _bumTransportMethod == layer3Vni._bumTransportMethod && Objects.equals(_sourceAddress, layer3Vni._sourceAddress) && _udpPort.equals(layer3Vni._udpPort) && _srcVrf.equals(layer3Vni._srcVrf); } private  Layer3Vni(
      Set<Ip> bumTransportIps,
      BumTransportMethod bumTransportMethod,
      @Nullable Ip sourceAddress,
      Integer udpPort,
      int vni,
      String srcVrf); }
Layer3Vni implements Vni { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Layer3Vni)) { return false; } Layer3Vni layer3Vni = (Layer3Vni) o; return _vni == layer3Vni._vni && _bumTransportIps.equals(layer3Vni._bumTransportIps) && _bumTransportMethod == layer3Vni._bumTransportMethod && Objects.equals(_sourceAddress, layer3Vni._sourceAddress) && _udpPort.equals(layer3Vni._udpPort) && _srcVrf.equals(layer3Vni._srcVrf); } private  Layer3Vni(
      Set<Ip> bumTransportIps,
      BumTransportMethod bumTransportMethod,
      @Nullable Ip sourceAddress,
      Integer udpPort,
      int vni,
      String srcVrf); @Override @Nonnull Set<Ip> getBumTransportIps(); @Override @Nonnull BumTransportMethod getBumTransportMethod(); @Nullable @Override Ip getMulticastGroup(); @Override @Nullable Ip getSourceAddress(); @Override @Nonnull Integer getUdpPort(); @Override int getVni(); @Override @Nonnull String getSrcVrf(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Builder builder(); @Nonnull Builder toBuilder(); static Builder testBuilder(); }
Layer3Vni implements Vni { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Layer3Vni)) { return false; } Layer3Vni layer3Vni = (Layer3Vni) o; return _vni == layer3Vni._vni && _bumTransportIps.equals(layer3Vni._bumTransportIps) && _bumTransportMethod == layer3Vni._bumTransportMethod && Objects.equals(_sourceAddress, layer3Vni._sourceAddress) && _udpPort.equals(layer3Vni._udpPort) && _srcVrf.equals(layer3Vni._srcVrf); } private  Layer3Vni(
      Set<Ip> bumTransportIps,
      BumTransportMethod bumTransportMethod,
      @Nullable Ip sourceAddress,
      Integer udpPort,
      int vni,
      String srcVrf); @Override @Nonnull Set<Ip> getBumTransportIps(); @Override @Nonnull BumTransportMethod getBumTransportMethod(); @Nullable @Override Ip getMulticastGroup(); @Override @Nullable Ip getSourceAddress(); @Override @Nonnull Integer getUdpPort(); @Override int getVni(); @Override @Nonnull String getSrcVrf(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Builder builder(); @Nonnull Builder toBuilder(); static Builder testBuilder();  }