@Test public void testHashCode() throws Exception { assertEquals(Objects.hash(distance, crashed, car, finished), result.hashCode()); }
@Override public int hashCode() { return Objects.hash(distanceTraveled, crashed, configuration, finished); }
CarSimulationResult { @Override public int hashCode() { return Objects.hash(distanceTraveled, crashed, configuration, finished); } }
CarSimulationResult { @Override public int hashCode() { return Objects.hash(distanceTraveled, crashed, configuration, finished); } CarSimulationResult(CarConfiguration configuration, double distanceTraveled,
                               boolean crashed, boolean finished); }
CarSimulationResult { @Override public int hashCode() { return Objects.hash(distanceTraveled, crashed, configuration, finished); } CarSimulationResult(CarConfiguration configuration, double distanceTraveled,
                               boolean crashed, boolean finished); CarConfiguration getConfiguration(); double getDistanceTraveled(); boolean hasCrashed(); boolean hasFinished(); CarSimulationResult crash(); CarSimulationResult finish(); CarSimulationResult finishOn(double distance); CarSimulationResult increaseDistance(double delta); boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
CarSimulationResult { @Override public int hashCode() { return Objects.hash(distanceTraveled, crashed, configuration, finished); } CarSimulationResult(CarConfiguration configuration, double distanceTraveled,
                               boolean crashed, boolean finished); CarConfiguration getConfiguration(); double getDistanceTraveled(); boolean hasCrashed(); boolean hasFinished(); CarSimulationResult crash(); CarSimulationResult finish(); CarSimulationResult finishOn(double distance); CarSimulationResult increaseDistance(double delta); boolean equals(Object other); @Override int hashCode(); @Override String toString();  }