com.amazonaws.services.simpleemail.model.Body.equals()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(87)

本文整理了Java中com.amazonaws.services.simpleemail.model.Body.equals()方法的一些代码示例,展示了Body.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.equals()方法的具体详情如下:
包路径:com.amazonaws.services.simpleemail.model.Body
类名称:Body
方法名:equals

Body.equals介绍

暂无

代码示例

代码示例来源:origin: aws/aws-sdk-java

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof Message == false)
    return false;
  Message other = (Message) obj;
  if (other.getSubject() == null ^ this.getSubject() == null)
    return false;
  if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false)
    return false;
  if (other.getBody() == null ^ this.getBody() == null)
    return false;
  if (other.getBody() != null && other.getBody().equals(this.getBody()) == false)
    return false;
  return true;
}

代码示例来源:origin: aws-amplify/aws-sdk-android

@Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;

    if (obj instanceof Message == false)
      return false;
    Message other = (Message) obj;

    if (other.getSubject() == null ^ this.getSubject() == null)
      return false;
    if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false)
      return false;
    if (other.getBody() == null ^ this.getBody() == null)
      return false;
    if (other.getBody() != null && other.getBody().equals(this.getBody()) == false)
      return false;
    return true;
  }
}

代码示例来源:origin: com.amazonaws/aws-java-sdk-ses

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof Message == false)
    return false;
  Message other = (Message) obj;
  if (other.getSubject() == null ^ this.getSubject() == null)
    return false;
  if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == false)
    return false;
  if (other.getBody() == null ^ this.getBody() == null)
    return false;
  if (other.getBody() != null && other.getBody().equals(this.getBody()) == false)
    return false;
  return true;
}

相关文章