All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hope.kola.contract.api.BodyValue Maven / Gradle / Ivy

There is a newer version: 1.1.2-RELEASE
Show newest version
package hope.kola.contract.api;

import hope.kola.contract.assertj.model.DynamicProperty;
import java.util.Objects;

public class BodyValue extends DynamicProperty {

  protected final String property;

  public BodyValue(String property) {
    this.property = property;
  }

  public String property() {
    return property;
  }

  @Override
  public boolean equals(Object object) {
    if (this == object) return true;
    if (!(object instanceof BodyValue that)) return false;
    return Objects.equals(property, that.property);
  }

  @Override
  public int hashCode() {
    return Objects.hash(property);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy