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

org.infinitenature.commons.pagination.impl.SliceImplBeanUtil 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 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;
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy