/** * Returns whether it has the im protocol. * * @return whether it has the im protocol */ public boolean hasProtocol() { return getProtocol() != null; }
@Override public int hashCode() { int result = getClass().hashCode(); if (getAddress() != null) { result = 37 * result + getAddress().hashCode(); } if (getLabel() != null) { result = 37 * result + getLabel().hashCode(); } if (getPrimary() != null) { result = 37 * result + getPrimary().hashCode(); } if (getProtocol() != null) { result = 37 * result + getProtocol().hashCode(); } if (getRel() != null) { result = 37 * result + getRel().hashCode(); } return result; } }
@Override public int hashCode() { int result = getClass().hashCode(); if (getAddress() != null) { result = 37 * result + getAddress().hashCode(); } if (getLabel() != null) { result = 37 * result + getLabel().hashCode(); } if (getPrimary() != null) { result = 37 * result + getPrimary().hashCode(); } if (getProtocol() != null) { result = 37 * result + getProtocol().hashCode(); } if (getRel() != null) { result = 37 * result + getRel().hashCode(); } return result; }
@Override public int hashCode() { int result = getClass().hashCode(); if (getAddress() != null) { result = 37 * result + getAddress().hashCode(); } if (getLabel() != null) { result = 37 * result + getLabel().hashCode(); } if (getPrimary() != null) { result = 37 * result + getPrimary().hashCode(); } if (getProtocol() != null) { result = 37 * result + getProtocol().hashCode(); } if (getRel() != null) { result = 37 * result + getRel().hashCode(); } return result; } }
System.out.print(" rel:" + im.getRel()); if (im.getProtocol() != null) { System.out.print(" protocol:" + im.getProtocol());
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Im other = (Im) obj; return eq(getAddress(), other.getAddress()) && eq(getLabel(), other.getLabel()) && eq(getPrimary(), other.getPrimary()) && eq(getProtocol(), other.getProtocol()) && eq(getRel(), other.getRel()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Im other = (Im) obj; return eq(getAddress(), other.getAddress()) && eq(getLabel(), other.getLabel()) && eq(getPrimary(), other.getPrimary()) && eq(getProtocol(), other.getProtocol()) && eq(getRel(), other.getRel()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Im other = (Im) obj; return eq(getAddress(), other.getAddress()) && eq(getLabel(), other.getLabel()) && eq(getPrimary(), other.getPrimary()) && eq(getProtocol(), other.getProtocol()) && eq(getRel(), other.getRel()); }