@Test public void testHashCode() { assertThat(newSample().hashCode()) .isEqualTo(newSample().hashCode()) .isNotEqualTo(new DataSet(id, DataSet.Kind.DUMMY, emptyContent).hashCode()); }
@Override public int hashCode() { return Objects.hash(dataSource, kind, params); }
DataSet implements IConfig, Serializable { @Override public int hashCode() { return Objects.hash(dataSource, kind, params); } }
DataSet implements IConfig, Serializable { @Override public int hashCode() { return Objects.hash(dataSource, kind, params); } @VisibleForTesting  DataSet(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params); }
DataSet implements IConfig, Serializable { @Override public int hashCode() { return Objects.hash(dataSource, kind, params); } @VisibleForTesting  DataSet(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params); @NonNull DataSource getDataSource(); @NonNull Kind getKind(); @Override SortedMap<String, String> getParams(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @NonNull Builder toBuilder(@NonNull Kind kind); @NonNull static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind); @NonNull static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull String key, @NonNull String value); @NonNull static DataSet deepCopyOf(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull Map<String, String> params); @NonNull static Builder builder(@NonNull DataSource dataSource, @NonNull Kind kind); @Deprecated @NonNull static Builder builder(@NonNull DataSet dataSet, @NonNull Kind kind); static Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput); static Parsers.@NonNull Parser<DataSet> xmlParser(); static Formatters.@NonNull Formatter<DataSet> uriFormatter(); static Parsers.@NonNull Parser<DataSet> uriParser(); }
DataSet implements IConfig, Serializable { @Override public int hashCode() { return Objects.hash(dataSource, kind, params); } @VisibleForTesting  DataSet(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params); @NonNull DataSource getDataSource(); @NonNull Kind getKind(); @Override SortedMap<String, String> getParams(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @NonNull Builder toBuilder(@NonNull Kind kind); @NonNull static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind); @NonNull static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull String key, @NonNull String value); @NonNull static DataSet deepCopyOf(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull Map<String, String> params); @NonNull static Builder builder(@NonNull DataSource dataSource, @NonNull Kind kind); @Deprecated @NonNull static Builder builder(@NonNull DataSet dataSet, @NonNull Kind kind); static Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput); static Parsers.@NonNull Parser<DataSet> xmlParser(); static Formatters.@NonNull Formatter<DataSet> uriFormatter(); static Parsers.@NonNull Parser<DataSet> uriParser();  }