@Test public void testEquals() { EqualsVerifier.forClass(Alternative.class).suppress(Warning.NULL_FIELDS, Warning.STRICT_INHERITANCE).verify(); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Alternative)) return false; Alternative that = (Alternative) o; return name.equals(that.name); }
Alternative { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Alternative)) return false; Alternative that = (Alternative) o; return name.equals(that.name); } }
Alternative { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Alternative)) return false; Alternative that = (Alternative) o; return name.equals(that.name); } Alternative(String name); }
Alternative { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Alternative)) return false; Alternative that = (Alternative) o; return name.equals(that.name); } Alternative(String name); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
Alternative { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Alternative)) return false; Alternative that = (Alternative) o; return name.equals(that.name); } Alternative(String name); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); final String name; }