@Test public void testEquals() { TrafficGroup obj = _builder.build(); new EqualsTester() .addEqualityGroup(obj, obj, _builder.build()) .addEqualityGroup(_builder.setHaGroup(null).build()) .addEqualityGroup(_builder.setMac(null).build()) .addEqualityGroup(_builder.setName("n2").build()) .addEqualityGroup(_builder.setUnitId(null).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof TrafficGroup)) { return false; } TrafficGroup rhs = (TrafficGroup) obj; return Objects.equals(_haGroup, rhs._haGroup) && Objects.equals(_mac, rhs._mac) && _name.equals(rhs._name) && Objects.equals(_unitId, rhs._unitId); }
TrafficGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof TrafficGroup)) { return false; } TrafficGroup rhs = (TrafficGroup) obj; return Objects.equals(_haGroup, rhs._haGroup) && Objects.equals(_mac, rhs._mac) && _name.equals(rhs._name) && Objects.equals(_unitId, rhs._unitId); } }
TrafficGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof TrafficGroup)) { return false; } TrafficGroup rhs = (TrafficGroup) obj; return Objects.equals(_haGroup, rhs._haGroup) && Objects.equals(_mac, rhs._mac) && _name.equals(rhs._name) && Objects.equals(_unitId, rhs._unitId); } private  TrafficGroup(
      @Nullable String haGroup, @Nullable MacAddress mac, String name, @Nullable Integer unitId); }
TrafficGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof TrafficGroup)) { return false; } TrafficGroup rhs = (TrafficGroup) obj; return Objects.equals(_haGroup, rhs._haGroup) && Objects.equals(_mac, rhs._mac) && _name.equals(rhs._name) && Objects.equals(_unitId, rhs._unitId); } private  TrafficGroup(
      @Nullable String haGroup, @Nullable MacAddress mac, String name, @Nullable Integer unitId); static @Nonnull Builder builder(); @Nullable String getHaGroup(); @Nullable MacAddress getMac(); @Nonnull String getName(); @Nullable Integer getUnitId(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
TrafficGroup implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof TrafficGroup)) { return false; } TrafficGroup rhs = (TrafficGroup) obj; return Objects.equals(_haGroup, rhs._haGroup) && Objects.equals(_mac, rhs._mac) && _name.equals(rhs._name) && Objects.equals(_unitId, rhs._unitId); } private  TrafficGroup(
      @Nullable String haGroup, @Nullable MacAddress mac, String name, @Nullable Integer unitId); static @Nonnull Builder builder(); @Nullable String getHaGroup(); @Nullable MacAddress getMac(); @Nonnull String getName(); @Nullable Integer getUnitId(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }