// Generated by delombok at Sat Jun 11 11:12:44 CEST 2016

class Entity {
  private final String field;

  @java.lang.SuppressWarnings("all")
  private Entity(final String field) {
    this.field = field;
  }

  @java.lang.SuppressWarnings("all")
  public static Entity of(final String field) {
    return new Entity(field);
  }

  @java.lang.SuppressWarnings("all")
  public String getField() {
    return this.field;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof Entity)) return false;
    final Entity other = (Entity) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$field = this.getField();
    final java.lang.Object other$field = other.getField();
    if (this$field == null ? other$field != null : !this$field.equals(other$field)) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof Entity;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $field = this.getField();
    result = result * PRIME + ($field == null ? 43 : $field.hashCode());
    return result;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "Entity(field=" + this.getField() + ")";
  }
}
