@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Exit other = (Exit) obj;
        if (!Objects.equals(this.name, other.name)) {
            return false;
        }
        if (!Objects.equals(this.getEx, other.getEx)) {
            return false;
        }
        if (this.exit != other.exit) {
            return false;
        }
        return true;
    }