@Test public void testEquals() { Builder builder = ClassicMetric.builder().setValues(_values); ClassicMetric cm = builder.build(); new EqualsTester() .addEqualityGroup(cm, cm, builder.build()) .addEqualityGroup(builder.setK1(11).build()) .addEqualityGroup(builder.setK3(11).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nonnull Object o) { if (this == o) { return true; } if (!(o instanceof ClassicMetric)) { return false; } ClassicMetric that = (ClassicMetric) o; return _k1 == that._k1 && _k2 == that._k2 && _k3 == that._k3 && _k4 == that._k4 && _k5 == that._k5 && _values.equals(that._values); }
ClassicMetric implements EigrpMetric { @Override public boolean equals(@Nonnull Object o) { if (this == o) { return true; } if (!(o instanceof ClassicMetric)) { return false; } ClassicMetric that = (ClassicMetric) o; return _k1 == that._k1 && _k2 == that._k2 && _k3 == that._k3 && _k4 == that._k4 && _k5 == that._k5 && _values.equals(that._values); } }
ClassicMetric implements EigrpMetric { @Override public boolean equals(@Nonnull Object o) { if (this == o) { return true; } if (!(o instanceof ClassicMetric)) { return false; } ClassicMetric that = (ClassicMetric) o; return _k1 == that._k1 && _k2 == that._k2 && _k3 == that._k3 && _k4 == that._k4 && _k5 == that._k5 && _values.equals(that._values); } private  ClassicMetric(
      EigrpMetricValues values, short k1, short k2, short k3, short k4, short k5); }
ClassicMetric implements EigrpMetric { @Override public boolean equals(@Nonnull Object o) { if (this == o) { return true; } if (!(o instanceof ClassicMetric)) { return false; } ClassicMetric that = (ClassicMetric) o; return _k1 == that._k1 && _k2 == that._k2 && _k3 == that._k3 && _k4 == that._k4 && _k5 == that._k5 && _values.equals(that._values); } private  ClassicMetric(
      EigrpMetricValues values, short k1, short k2, short k3, short k4, short k5); @Override @Nonnull @JsonProperty(PROP_VALUES) EigrpMetricValues getValues(); @JsonProperty(PROP_K1) short getK1(); @JsonProperty(PROP_K2) short getK2(); @JsonProperty(PROP_K3) short getK3(); @JsonProperty(PROP_K4) short getK4(); @JsonProperty(PROP_K5) short getK5(); @Override UnsignedLong cost(); @Override long ribMetric(); @Override boolean isCompatible(EigrpMetric o); @Override ClassicMetric add(EigrpMetric o); @Override boolean equals(@Nonnull Object o); @Override int hashCode(); @Override String toString(); Builder toBuilder(); static Builder builder(); }
ClassicMetric implements EigrpMetric { @Override public boolean equals(@Nonnull Object o) { if (this == o) { return true; } if (!(o instanceof ClassicMetric)) { return false; } ClassicMetric that = (ClassicMetric) o; return _k1 == that._k1 && _k2 == that._k2 && _k3 == that._k3 && _k4 == that._k4 && _k5 == that._k5 && _values.equals(that._values); } private  ClassicMetric(
      EigrpMetricValues values, short k1, short k2, short k3, short k4, short k5); @Override @Nonnull @JsonProperty(PROP_VALUES) EigrpMetricValues getValues(); @JsonProperty(PROP_K1) short getK1(); @JsonProperty(PROP_K2) short getK2(); @JsonProperty(PROP_K3) short getK3(); @JsonProperty(PROP_K4) short getK4(); @JsonProperty(PROP_K5) short getK5(); @Override UnsignedLong cost(); @Override long ribMetric(); @Override boolean isCompatible(EigrpMetric o); @Override ClassicMetric add(EigrpMetric o); @Override boolean equals(@Nonnull Object o); @Override int hashCode(); @Override String toString(); Builder toBuilder(); static Builder builder();  }