org.rapidpm.vaadin.addons.webdriver.conf.WebdriversConfigBeanUtil 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 WebdriversConfigBeanUtil {
private WebdriversConfigBeanUtil() {
throw new java.lang.IllegalAccessError("Utility class");
}
public static String doToString(WebdriversConfig webdriversConfig) {
StringBuilder builder = new StringBuilder();
builder.append("WebdriversConfig@");
builder.append(System.identityHashCode(webdriversConfig));
builder.append("[");
builder.append("unittestingTarget=");
builder.append(webdriversConfig.getUnittestingTarget());
builder.append(", ");
builder.append("gridConfigs=");
builder.append(webdriversConfig.getGridConfigs());
builder.append("]");
return builder.toString();
}
public static int doToHashCode(WebdriversConfig webdriversConfig) {
final int prime = 31;
int result = 1;
result = prime * result + ((webdriversConfig.getUnittestingTarget() == null) ? 0 : webdriversConfig.getUnittestingTarget().hashCode());
result = prime * result + ((webdriversConfig.getGridConfigs() == null) ? 0 : webdriversConfig.getGridConfigs().hashCode());
return result;
}
public static boolean doEquals(WebdriversConfig lhs, Object obj) {
if (lhs == obj) {
return true;
}
if (obj == null) {
return false;
}
if (lhs.getClass() != obj.getClass()) {
return false;
}
WebdriversConfig other = (WebdriversConfig) obj;
if (lhs.getUnittestingTarget() == null) {
if (other.getUnittestingTarget() != null) {
return false;
}
} else if (!lhs.getUnittestingTarget().equals(other.getUnittestingTarget())) {
return false;
}
if (lhs.getGridConfigs() == null) {
if (other.getGridConfigs() != null) {
return false;
}
} else if (!lhs.getGridConfigs().equals(other.getGridConfigs())) {
return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy