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

com.github.messenger4j.send.Payload Maven / Gradle / Ivy

// Generated by delombok at Tue May 07 22:31:27 CEST 2019
package com.github.messenger4j.send;

import com.github.messenger4j.send.recipient.Recipient;

/**
 * @author Max Grabenhorst
 * @since 1.0.0
 */
public abstract class Payload {
  private final Recipient recipient;

  Payload(Recipient recipient) {
    this.recipient = recipient;
  }

  public Recipient recipient() {
    return recipient;
  }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy