@Test public void testEquals() { LargeCommunity lc = LargeCommunity.of(1L, 2L, 3L); new EqualsTester() .addEqualityGroup(lc, lc, LargeCommunity.of(1L, 2L, 3L)) .addEqualityGroup(LargeCommunity.of(2L, 2L, 3L)) .addEqualityGroup(LargeCommunity.of(1L, 3L, 3L)) .addEqualityGroup(LargeCommunity.of(1L, 2L, 4L)) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LargeCommunity that = (LargeCommunity) o; return _globalAdministrator == that._globalAdministrator && _localData1 == that._localData1 && _localData2 == that._localData2; }
LargeCommunity extends Community { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LargeCommunity that = (LargeCommunity) o; return _globalAdministrator == that._globalAdministrator && _localData1 == that._localData1 && _localData2 == that._localData2; } }
LargeCommunity extends Community { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LargeCommunity that = (LargeCommunity) o; return _globalAdministrator == that._globalAdministrator && _localData1 == that._localData1 && _localData2 == that._localData2; } private  LargeCommunity(long globalAdministrator, long localData1, long localData2); }
LargeCommunity extends Community { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LargeCommunity that = (LargeCommunity) o; return _globalAdministrator == that._globalAdministrator && _localData1 == that._localData1 && _localData2 == that._localData2; } private  LargeCommunity(long globalAdministrator, long localData1, long localData2); static LargeCommunity parse(String value); @Nonnull static Optional<LargeCommunity> tryParse(String text); static LargeCommunity of(long globalAdministrator, long localData1, long localData2); @Override T accept(CommunityVisitor<T> visitor); long getGlobalAdministrator(); long getLocalData1(); long getLocalData2(); @Override boolean isTransitive(); @Nonnull @Override String matchString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull @Override String toString(); }
LargeCommunity extends Community { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LargeCommunity that = (LargeCommunity) o; return _globalAdministrator == that._globalAdministrator && _localData1 == that._localData1 && _localData2 == that._localData2; } private  LargeCommunity(long globalAdministrator, long localData1, long localData2); static LargeCommunity parse(String value); @Nonnull static Optional<LargeCommunity> tryParse(String text); static LargeCommunity of(long globalAdministrator, long localData1, long localData2); @Override T accept(CommunityVisitor<T> visitor); long getGlobalAdministrator(); long getLocalData1(); long getLocalData2(); @Override boolean isTransitive(); @Nonnull @Override String matchString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull @Override String toString();  }