@Test public void testEquals() { new EqualsTester() .addEqualityGroup(1) .addEqualityGroup( new FileLines("a", ImmutableSortedSet.of(1)), new FileLines("a", ImmutableSortedSet.of(1))) .addEqualityGroup(new FileLines("b", ImmutableSortedSet.of(1))) .addEqualityGroup(new FileLines("b", ImmutableSortedSet.of(2))) .testEquals(); }
@Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } else if (!(other instanceof FileLines)) { return false; } FileLines o = (FileLines) other; return _filename.equals(o._filename) && _lines.equals(o._lines); }
FileLines { @Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } else if (!(other instanceof FileLines)) { return false; } FileLines o = (FileLines) other; return _filename.equals(o._filename) && _lines.equals(o._lines); } }
FileLines { @Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } else if (!(other instanceof FileLines)) { return false; } FileLines o = (FileLines) other; return _filename.equals(o._filename) && _lines.equals(o._lines); } @JsonCreator  FileLines(
      @JsonProperty(PROP_FILENAME) String filename,
      @Nullable @JsonProperty(PROP_LINES) SortedSet<Integer> lines); }
FileLines { @Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } else if (!(other instanceof FileLines)) { return false; } FileLines o = (FileLines) other; return _filename.equals(o._filename) && _lines.equals(o._lines); } @JsonCreator  FileLines(
      @JsonProperty(PROP_FILENAME) String filename,
      @Nullable @JsonProperty(PROP_LINES) SortedSet<Integer> lines); @JsonProperty(PROP_FILENAME) String getFilename(); @JsonProperty(PROP_LINES) SortedSet<Integer> getLines(); @Override String toString(); @Override boolean equals(@Nullable Object other); @Override int hashCode(); }
FileLines { @Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } else if (!(other instanceof FileLines)) { return false; } FileLines o = (FileLines) other; return _filename.equals(o._filename) && _lines.equals(o._lines); } @JsonCreator  FileLines(
      @JsonProperty(PROP_FILENAME) String filename,
      @Nullable @JsonProperty(PROP_LINES) SortedSet<Integer> lines); @JsonProperty(PROP_FILENAME) String getFilename(); @JsonProperty(PROP_LINES) SortedSet<Integer> getLines(); @Override String toString(); @Override boolean equals(@Nullable Object other); @Override int hashCode();  }