@Test public void testEquals() { EqualsVerifier.forClass(PrefetchedExperiment.class).suppress(Warning.NULL_FIELDS, Warning.STRICT_INHERITANCE).verify(); }
@Override public boolean equals(final Object o) { if (this == o) return true; if (!(o instanceof PrefetchedExperiment)) return false; final PrefetchedExperiment that = (PrefetchedExperiment) o; if (baseExperiment != null ? !baseExperiment.equals(that.baseExperiment) : that.baseExperiment != null) return false; return !(selectedAlternative != null ? !selectedAlternative.equals(that.selectedAlternative) : that.selectedAlternative != null); }
PrefetchedExperiment { @Override public boolean equals(final Object o) { if (this == o) return true; if (!(o instanceof PrefetchedExperiment)) return false; final PrefetchedExperiment that = (PrefetchedExperiment) o; if (baseExperiment != null ? !baseExperiment.equals(that.baseExperiment) : that.baseExperiment != null) return false; return !(selectedAlternative != null ? !selectedAlternative.equals(that.selectedAlternative) : that.selectedAlternative != null); } }
PrefetchedExperiment { @Override public boolean equals(final Object o) { if (this == o) return true; if (!(o instanceof PrefetchedExperiment)) return false; final PrefetchedExperiment that = (PrefetchedExperiment) o; if (baseExperiment != null ? !baseExperiment.equals(that.baseExperiment) : that.baseExperiment != null) return false; return !(selectedAlternative != null ? !selectedAlternative.equals(that.selectedAlternative) : that.selectedAlternative != null); } PrefetchedExperiment(final Sixpack sixpack, final Experiment experiment, final Alternative alternative); }
PrefetchedExperiment { @Override public boolean equals(final Object o) { if (this == o) return true; if (!(o instanceof PrefetchedExperiment)) return false; final PrefetchedExperiment that = (PrefetchedExperiment) o; if (baseExperiment != null ? !baseExperiment.equals(that.baseExperiment) : that.baseExperiment != null) return false; return !(selectedAlternative != null ? !selectedAlternative.equals(that.selectedAlternative) : that.selectedAlternative != null); } PrefetchedExperiment(final Sixpack sixpack, final Experiment experiment, final Alternative alternative); ParticipatingExperiment participate(); @Override boolean equals(final Object o); @Override int hashCode(); }
PrefetchedExperiment { @Override public boolean equals(final Object o) { if (this == o) return true; if (!(o instanceof PrefetchedExperiment)) return false; final PrefetchedExperiment that = (PrefetchedExperiment) o; if (baseExperiment != null ? !baseExperiment.equals(that.baseExperiment) : that.baseExperiment != null) return false; return !(selectedAlternative != null ? !selectedAlternative.equals(that.selectedAlternative) : that.selectedAlternative != null); } PrefetchedExperiment(final Sixpack sixpack, final Experiment experiment, final Alternative alternative); ParticipatingExperiment participate(); @Override boolean equals(final Object o); @Override int hashCode(); final Experiment baseExperiment; final Alternative selectedAlternative; }