com.github.messenger4j.messengerprofile.SetupResponse Maven / Gradle / Ivy
// Generated by delombok at Tue May 07 22:31:27 CEST 2019
package com.github.messenger4j.messengerprofile;
import lombok.NonNull;
/**
* @author Andriy Koretskyy
* @author Max Grabenhorst
* @since 1.0.0
*/
public final class SetupResponse {
private final String result;
public SetupResponse(@NonNull String result) {
if (result == null) {
throw new java.lang.IllegalArgumentException("result is marked @NonNull but is null");
}
this.result = result;
}
public String result() {
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "SetupResponse(result=" + this.result + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof SetupResponse)) return false;
final SetupResponse other = (SetupResponse) o;
final java.lang.Object this$result = this.result;
final java.lang.Object other$result = other.result;
if (this$result == null ? other$result != null : !this$result.equals(other$result))
return false;
return true;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $result = this.result;
result = result * PRIME + ($result == null ? 43 : $result.hashCode());
return result;
}
}