Row { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof Row)) { return false; } Row that = (Row) other; return Objects.equals(columns, that.getColumns()); } Row(java.util.Map<String, Value> columns);  Row(); java.util.Map<String, Value> getColumns(); Row stringColumn(String name, String string); Row integerColumn(String name, Long integer); Row boolColumn(String name, Boolean bool); Row uuidColumn(String name, Uuid uuid); Row namedUuidColumn(String name, String uuidName); Row mapColumn(String name, java.util.Map<K, V> map); Row setColumn(String name, java.util.Set<T> set); String getStringColumn(String name); Long getIntegerColumn(String name); Boolean getBooleanColumn(String name); Uuid getUuidColumn(String name); java.util.Map<K, V> getMapColumn(String name); java.util.Set<T> getSetColumn(String name); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { java.util.Map<String, Value> columns = new HashMap<>(); columns.put("string_column", Atom.string("A string")); columns.put("integer_column", Atom.integer(42)); columns.put("bool_column", Atom.bool(true)); columns.put("uuid_column", Atom.uuid(uuid)); columns.put("named-uuid", Atom.namedUuid("uuid-name")); columns.put("map_column", Map.of(ImmutableMap.of("key", "value"))); columns.put("set_column", Set.of("value1", "value2")); new EqualsTester().addEqualityGroup(row, new Row(columns)).testEquals(); }