@Test public void testEquals() { RouteDistinguisher rd = RouteDistinguisher.from(0L, 1); new EqualsTester() .addEqualityGroup(rd, rd, RouteDistinguisher.from(0L, 1)) .addEqualityGroup(RouteDistinguisher.from(0, 1L)) .addEqualityGroup(RouteDistinguisher.from(Ip.ZERO, 1)) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof RouteDistinguisher)) { return false; } RouteDistinguisher that = (RouteDistinguisher) o; return _value == that._value && _type == that._type; }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof RouteDistinguisher)) { return false; } RouteDistinguisher that = (RouteDistinguisher) o; return _value == that._value && _type == that._type; } }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof RouteDistinguisher)) { return false; } RouteDistinguisher that = (RouteDistinguisher) o; return _value == that._value && _type == that._type; } private  RouteDistinguisher(long value, Type type); }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof RouteDistinguisher)) { return false; } RouteDistinguisher that = (RouteDistinguisher) o; return _value == that._value && _type == that._type; } private  RouteDistinguisher(long value, Type type); @Nonnull static RouteDistinguisher parse(String value); @Nonnull static RouteDistinguisher from(int asn1, long asn2); @Nonnull static RouteDistinguisher from(Ip ip, int asn); @Nonnull static RouteDistinguisher from(long asn1, int asn2); @Nonnull static RouteDistinguisher from(long asn1, long asn2); long getValue(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(RouteDistinguisher o); @Override @Nonnull @JsonValue String toString(); }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof RouteDistinguisher)) { return false; } RouteDistinguisher that = (RouteDistinguisher) o; return _value == that._value && _type == that._type; } private  RouteDistinguisher(long value, Type type); @Nonnull static RouteDistinguisher parse(String value); @Nonnull static RouteDistinguisher from(int asn1, long asn2); @Nonnull static RouteDistinguisher from(Ip ip, int asn); @Nonnull static RouteDistinguisher from(long asn1, int asn2); @Nonnull static RouteDistinguisher from(long asn1, long asn2); long getValue(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(RouteDistinguisher o); @Override @Nonnull @JsonValue String toString();  }