@Test public void testEquals() { EqualsVerifier.forClass(Restriction.class) .usingGetClass() .withNonnullFields("type", "value") .verify(); }
@Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final Restriction that = (Restriction) o; return type == that.type && value.equals(that.value); }
Restriction { @Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final Restriction that = (Restriction) o; return type == that.type && value.equals(that.value); } }
Restriction { @Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final Restriction that = (Restriction) o; return type == that.type && value.equals(that.value); } private  Restriction(Type type, String value); }
Restriction { @Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final Restriction that = (Restriction) o; return type == that.type && value.equals(that.value); } private  Restriction(Type type, String value); Type getType(); String getValue(); static Restriction identifier(String value); static Restriction title(String value); static Restriction summary(String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
Restriction { @Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final Restriction that = (Restriction) o; return type == that.type && value.equals(that.value); } private  Restriction(Type type, String value); Type getType(); String getValue(); static Restriction identifier(String value); static Restriction title(String value); static Restriction summary(String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }