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

com.github.shoothzj.javatool.module.network.VirtualIfCfg Maven / Gradle / Ivy

There is a newer version: 3.1.15
Show newest version
package com.github.shoothzj.javatool.module.network;

/**
 * @author hezhangjian
 */
public class VirtualIfCfg {
    private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(VirtualIfCfg.class);
    private String name;
    private String virtualName;
    private String ip;

    public String getName() {
        return this.name;
    }

    public String getVirtualName() {
        return this.virtualName;
    }

    public String getIp() {
        return this.ip;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public void setVirtualName(final String virtualName) {
        this.virtualName = virtualName;
    }

    public void setIp(final String ip) {
        this.ip = ip;
    }

    @Override
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof VirtualIfCfg)) return false;
        final VirtualIfCfg other = (VirtualIfCfg) 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$virtualName = this.getVirtualName();
        final Object other$virtualName = other.getVirtualName();
        if (this$virtualName == null ? other$virtualName != null : !this$virtualName.equals(other$virtualName)) 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;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof VirtualIfCfg;
    }

    @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 $virtualName = this.getVirtualName();
        result = result * PRIME + ($virtualName == null ? 43 : $virtualName.hashCode());
        final Object $ip = this.getIp();
        result = result * PRIME + ($ip == null ? 43 : $ip.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "VirtualIfCfg(name=" + this.getName() + ", virtualName=" + this.getVirtualName() + ", ip=" + this.getIp() + ")";
    }

    public VirtualIfCfg() {
    }

    public VirtualIfCfg(final String name, final String virtualName, final String ip) {
        this.name = name;
        this.virtualName = virtualName;
        this.ip = ip;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy