@Test public void testEquals() { Map<String, Value> columns3 = new HashMap<>(columns1); Map<String, Value> columns4 = new TreeMap<>(columns2); new EqualsTester() .addEqualityGroup(new SelectResult(ImmutableList.of(new Row(columns1), new Row(columns2))), new SelectResult(ImmutableList.of(new Row(columns3), new Row(columns4)))) .testEquals(); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SelectResult)) { return false; } SelectResult that = (SelectResult) other; return Objects.equals(rows, that.getRows()); }
SelectResult extends OperationResult { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SelectResult)) { return false; } SelectResult that = (SelectResult) other; return Objects.equals(rows, that.getRows()); } }
SelectResult extends OperationResult { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SelectResult)) { return false; } SelectResult that = (SelectResult) other; return Objects.equals(rows, that.getRows()); } @JsonCreator  SelectResult(@JsonProperty(value = "rows", required = true) List<Row> rows); }
SelectResult extends OperationResult { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SelectResult)) { return false; } SelectResult that = (SelectResult) other; return Objects.equals(rows, that.getRows()); } @JsonCreator  SelectResult(@JsonProperty(value = "rows", required = true) List<Row> rows); List<Row> getRows(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
SelectResult extends OperationResult { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SelectResult)) { return false; } SelectResult that = (SelectResult) other; return Objects.equals(rows, that.getRows()); } @JsonCreator  SelectResult(@JsonProperty(value = "rows", required = true) List<Row> rows); List<Row> getRows(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }