/** * @param rhs the object to check for equality. * @see java.lang.Object#equals * @return true if the key and values are the same. */ @Override public boolean equals(Object rhs) { if (rhs == null || rhs.getClass() != getClass()) { return false; } if (rhs == this) { return true; } Attribute rhsAttribute = (Attribute) rhs; String lhsKey = getKey(); String rhsKey = rhsAttribute.getKey(); return (lhsKey != null || rhsKey == null) && (lhsKey == null || lhsKey.equals(rhsKey)) && values.equals(rhsAttribute.values); }
return false; else if (!vector.equals(other.vector)) return false; return true;
/** * @see java.lang.Object#equals */ @Override public boolean equals( Object rhs ) { if ( super.equals( rhs ) ) { return false; } if ( rhs == null || rhs.getClass() != getClass() ) { return false; } if ( rhs == this ) { return true; } Attribute rhsAttribute = (Attribute) rhs; String lhsKey = getKey(); String rhsKey = rhsAttribute.getKey(); //noinspection SimplifiableIfStatement,ConstantConditions if ( ( lhsKey == null && rhsKey != null ) || ( lhsKey != null && rhsKey == null ) || !lhsKey.equals( rhsKey ) ) { return false; } return rhsAttribute.values != null && values.equals( rhsAttribute.values ); }
public boolean equals(Object ob) { if (ob == this) return true; if (!(ob instanceof DTDEnumeration)) return false; DTDEnumeration other = (DTDEnumeration) ob; return items.equals(other.items); }
/** Returns true if this object is equal to another */ public boolean equals(Object ob) { if (this == ob) return true; if (!(ob instanceof DTD)) return false; DTD otherDTD = (DTD) ob; return items.equals(otherDTD.items); }
public boolean equals(Object ob) { if (ob == this) return true; if (!(ob instanceof DTDNotationList)) return false; DTDNotationList other = (DTDNotationList) ob; return items.equals(other.items); }
@Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (obj instanceof ReferenceVector) { return ((ReferenceVector) obj).elements.equals(elements); } return false; }
@Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (obj instanceof ReferenceVector) { return ((ReferenceVector) obj).elements.equals(elements); } return false; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ConllRawSentence that = (ConllRawSentence) o; if (sentId != that.sentId) return false; if (entityIndices != null ? !entityIndices.equals(that.entityIndices) : that.entityIndices != null) return false; if (relations != null ? !relations.equals(that.relations) : that.relations != null) return false; if (sentTokens != null ? !sentTokens.equals(that.sentTokens) : that.sentTokens != null) return false; return true; }
public boolean equals(Object ob) { if (ob == this) return true; if (!(ob instanceof DTDAttlist)) return false; DTDAttlist other = (DTDAttlist) ob; if ((name == null) && (other.name != null)) return false; if ((name != null) && !name.equals(other.name)) return false; return attributes.equals(other.attributes); }
/** * First wait until complete. */ public synchronized boolean equals(Object object) { waitUntilComplete(); return super.equals(object); }
/** * @see java.util.Vector#equals(java.lang.Object) */ @Override public boolean equals(Object o) { return getDelegate().equals(o); }
/** * First wait until complete. */ public synchronized boolean equals(Object object) { waitUntilComplete(); return super.equals(object); }
/** * First wait until complete. */ public synchronized boolean equals(Object object) { waitUntilComplete(); return super.equals(object); }
public boolean equals(Object ob) { if (ob == this) return true; if (!(ob instanceof DTDContainer)) return false; if (!super.equals(ob)) return false; DTDContainer other = (DTDContainer) ob; return items.equals(other.items); }
/** * First wait until complete. */ public synchronized boolean equals(Object object) { waitUntilComplete(); return super.equals(object); }
/** * @see java.util.Vector#equals(java.lang.Object) */ public boolean equals(Object o) { return getDelegate().equals(o); }
@Override public synchronized boolean equals(Object paramObject) { if (!_directAccess && isDelayLoad()) { load(); } return super.equals(paramObject); }
@Override public synchronized boolean equals(Object paramObject) { if (!_directAccess && isDelayLoad()) { load(); } return super.equals(paramObject); }
@Test(expected = ReactiveAuditException.class) public void equalsThis() { ReactiveAudit.off.commit(); Vector vector=new Vector(); TestTools.strict.commit(); vector.equals(null); } @Test(expected = ReactiveAuditException.class)