ai.grakn.engine.controller.response.AutoValue_RolePlayer Maven / Gradle / Ivy
package ai.grakn.engine.controller.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RolePlayer extends RolePlayer {
private final Link role;
private final Link thing;
AutoValue_RolePlayer(
Link role,
Link thing) {
if (role == null) {
throw new NullPointerException("Null role");
}
this.role = role;
if (thing == null) {
throw new NullPointerException("Null thing");
}
this.thing = thing;
}
@JsonProperty
@Override
public Link role() {
return role;
}
@JsonProperty
@Override
public Link thing() {
return thing;
}
@Override
public String toString() {
return "RolePlayer{"
+ "role=" + role + ", "
+ "thing=" + thing
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RolePlayer) {
RolePlayer that = (RolePlayer) o;
return (this.role.equals(that.role()))
&& (this.thing.equals(that.thing()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.role.hashCode();
h *= 1000003;
h ^= this.thing.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy