com.github.shoothzj.javatool.module.network.IfCfg Maven / Gradle / Ivy
The newest version!
package com.github.shoothzj.javatool.module.network;
import java.util.List;
/**
* @author hezhangjian
*/
public class IfCfg {
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(IfCfg.class);
private String name;
private String ip;
private List virtualIfCfgs;
public IfCfg() {
}
public String getName() {
return this.name;
}
public String getIp() {
return this.ip;
}
public List getVirtualIfCfgs() {
return this.virtualIfCfgs;
}
public void setName(final String name) {
this.name = name;
}
public void setIp(final String ip) {
this.ip = ip;
}
public void setVirtualIfCfgs(final List virtualIfCfgs) {
this.virtualIfCfgs = virtualIfCfgs;
}
@Override
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof IfCfg)) return false;
final IfCfg other = (IfCfg) o;
if (!other.canEqual((Object) this)) return false;
final Object this$name = this.getName();
final Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final Object this$ip = this.getIp();
final Object other$ip = other.getIp();
if (this$ip == null ? other$ip != null : !this$ip.equals(other$ip)) return false;
final Object this$virtualIfCfgs = this.getVirtualIfCfgs();
final Object other$virtualIfCfgs = other.getVirtualIfCfgs();
if (this$virtualIfCfgs == null ? other$virtualIfCfgs != null : !this$virtualIfCfgs.equals(other$virtualIfCfgs)) return false;
return true;
}
protected boolean canEqual(final Object other) {
return other instanceof IfCfg;
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
final Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final Object $ip = this.getIp();
result = result * PRIME + ($ip == null ? 43 : $ip.hashCode());
final Object $virtualIfCfgs = this.getVirtualIfCfgs();
result = result * PRIME + ($virtualIfCfgs == null ? 43 : $virtualIfCfgs.hashCode());
return result;
}
@Override
public String toString() {
return "IfCfg(name=" + this.getName() + ", ip=" + this.getIp() + ", virtualIfCfgs=" + this.getVirtualIfCfgs() + ")";
}
}