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

org.rapidpm.vaadin.addons.webdriver.conf.GridConfigBeanUtil Maven / Gradle / Ivy

package org.rapidpm.vaadin.addons.webdriver.conf;

import net.vergien.beanautoutils.annotation.Generated;

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

  public static String doToString(GridConfig gridConfig) {
    StringBuilder builder = new StringBuilder();
    builder.append("GridConfig@");
    builder.append(System.identityHashCode(gridConfig));
    builder.append("[");
    builder.append("type=");
    builder.append(gridConfig.getType());
    builder.append(", ");
    builder.append("name=");
    builder.append(gridConfig.getName());
    builder.append(", ");
    builder.append("target=");
    builder.append(gridConfig.getTarget());
    builder.append(", ");
    builder.append("desiredCapabilities=");
    builder.append(gridConfig.getDesiredCapabilities());
    builder.append("]");
    return builder.toString();
  }

  public static int doToHashCode(GridConfig gridConfig) {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((gridConfig.getType() == null) ? 0 : gridConfig.getType().hashCode());
    result = prime * result + ((gridConfig.getName() == null) ? 0 : gridConfig.getName().hashCode());
    result = prime * result + ((gridConfig.getTarget() == null) ? 0 : gridConfig.getTarget().hashCode());
    result = prime * result + ((gridConfig.getDesiredCapabilities() == null) ? 0 : gridConfig.getDesiredCapabilities().hashCode());
    return result;
  }

  public static boolean doEquals(GridConfig lhs, Object obj) {
    if (lhs == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (lhs.getClass() != obj.getClass()) {
      return false;
    }
    GridConfig other = (GridConfig) obj;
    if (lhs.getType() == null) {
      if (other.getType() != null) {
        return false;
      }
    } else if (!lhs.getType().equals(other.getType())) {
      return false;
    }
    if (lhs.getName() == null) {
      if (other.getName() != null) {
        return false;
      }
    } else if (!lhs.getName().equals(other.getName())) {
      return false;
    }
    if (lhs.getTarget() == null) {
      if (other.getTarget() != null) {
        return false;
      }
    } else if (!lhs.getTarget().equals(other.getTarget())) {
      return false;
    }
    if (lhs.getDesiredCapabilities() == null) {
      if (other.getDesiredCapabilities() != null) {
        return false;
      }
    } else if (!lhs.getDesiredCapabilities().equals(other.getDesiredCapabilities())) {
      return false;
    }
    return true;
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy