org.infinitenature.commons.pagination.impl.PageImplBeanUtil Maven / Gradle / Ivy
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;
}
}