org.infinitenature.commons.pagination.impl.SliceImplBeanUtil Maven / Gradle / Ivy
package org.infinitenature.commons.pagination.impl;
import javax.annotation.Generated;
@Generated(value = "net.vergien.beanautoutils.processor.BeanAutoUtilsProcessor")
public class SliceImplBeanUtil {
private SliceImplBeanUtil() {
throw new java.lang.IllegalAccessError("Utility class");
}
public static String doToString(SliceImpl sliceImpl) {
StringBuilder builder = new StringBuilder();
builder.append("SliceImpl@");
builder.append(System.identityHashCode(sliceImpl));
builder.append("[");
builder.append("content=");
builder.append(sliceImpl.getContent());
builder.append(", ");
builder.append("request=");
builder.append(sliceImpl.getRequest());
builder.append("]");
return builder.toString();
}
public static int doToHashCode(SliceImpl sliceImpl) {
final int prime = 31;
int result = 1;
result = prime * result + ((sliceImpl.getContent() == null) ? 0 : sliceImpl.getContent().hashCode());
result = prime * result + ((sliceImpl.getRequest() == null) ? 0 : sliceImpl.getRequest().hashCode());
return result;
}
public static boolean doEquals(SliceImpl lhs, Object obj) {
if (lhs == obj) {
return true;
}
if (obj == null) {
return false;
}
if (lhs.getClass() != obj.getClass()) {
return false;
}
SliceImpl other = (SliceImpl) 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;
}
return true;
}
}