@Test public void shouldTwoInstancesWithSameValuesBeEqual() { PriceLevel priceLevel_1 = defaultPriceLevel(); PriceLevel priceLevel_2 = defaultPriceLevel(); assertThat(priceLevel_1).isEqualTo(priceLevel_2); assertThat(priceLevel_1.hashCode()).isEqualTo(priceLevel_2.hashCode()); }
@Override public int hashCode() { return Objects.hash(symbol, timestamp, price, size); }
PriceLevel { @Override public int hashCode() { return Objects.hash(symbol, timestamp, price, size); } }
PriceLevel { @Override public int hashCode() { return Objects.hash(symbol, timestamp, price, size); } PriceLevel(
            final String symbol,
            final long timestamp,
            final IEXPrice price,
            final int size); }
PriceLevel { @Override public int hashCode() { return Objects.hash(symbol, timestamp, price, size); } PriceLevel(
            final String symbol,
            final long timestamp,
            final IEXPrice price,
            final int size); String getSymbol(); long getTimestamp(); IEXPrice getPrice(); int getSize(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
PriceLevel { @Override public int hashCode() { return Objects.hash(symbol, timestamp, price, size); } PriceLevel(
            final String symbol,
            final long timestamp,
            final IEXPrice price,
            final int size); String getSymbol(); long getTimestamp(); IEXPrice getPrice(); int getSize(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }