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

org.infinitenature.commons.pagination.impl.PageImplBeanUtil Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version
package org.infinitenature.commons.pagination.impl;

import javax.annotation.Generated;

@Generated(value = "net.vergien.beanautoutils.processor.BeanAutoUtilsProcessor")
public class PageImplBeanUtil {
  private PageImplBeanUtil() {
    throw new java.lang.IllegalAccessError("Utility class");
  }

  public static String doToString(PageImpl pageImpl) {
    StringBuilder builder = new StringBuilder();
    builder.append("PageImpl@");
    builder.append(System.identityHashCode(pageImpl));
    builder.append("[");
    builder.append("content=");
    builder.append(pageImpl.getContent());
    builder.append(", ");
    builder.append("request=");
    builder.append(pageImpl.getRequest());
    builder.append(", ");
    builder.append("total=");
    builder.append(pageImpl.getTotal());
    builder.append(", ");
    builder.append("request=");
    builder.append(pageImpl.getRequest());
    builder.append("]");
    return builder.toString();
  }

  public static int doToHashCode(PageImpl pageImpl) {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((pageImpl.getContent() == null) ? 0 : pageImpl.getContent().hashCode());
    result = prime * result + ((pageImpl.getRequest() == null) ? 0 : pageImpl.getRequest().hashCode());
    result = prime * result + (int) (pageImpl.getTotal() ^ (pageImpl.getTotal() >>> 32));
    result = prime * result + ((pageImpl.getRequest() == null) ? 0 : pageImpl.getRequest().hashCode());
    return result;
  }

  public static boolean doEquals(PageImpl lhs, Object obj) {
    if (lhs == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (lhs.getClass() != obj.getClass()) {
      return false;
    }
    PageImpl other = (PageImpl) obj;
    if (lhs.getContent() == null) {
      if (other.getContent() != null) {
        return false;
      }
    } else if (!lhs.getContent().equals(other.getContent())) {
      return false;
    }
    if (lhs.getRequest() == null) {
      if (other.getRequest() != null) {
        return false;
      }
    } else if (!lhs.getRequest().equals(other.getRequest())) {
      return false;
    }
    if (lhs.getTotal() != other.getTotal()) {
      return false;
    }
    if (lhs.getRequest() == null) {
      if (other.getRequest() != null) {
        return false;
      }
    } else if (!lhs.getRequest().equals(other.getRequest())) {
      return false;
    }
    return true;
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy