public boolean equals(Object obj) { if (!(obj instanceof RoleAndFunction)) return false; if (this == obj) return true; RoleAndFunction other = (RoleAndFunction) obj; if (StringUtil.different(this.role, other.role)) return false; if (StringUtil.different(this.function, other.function)) return false; return true; }
public boolean equals(Object obj) { if (!(obj instanceof UserAndRole)) return false; if (this == obj) return true; UserAndRole other = (UserAndRole) obj; if (StringUtil.different(this.role, other.role)) return false; if (this.provided != other.provided) return false; if (this.active != other.active) return false; if (StringUtil.different(this.userId, other.userId)) return false; return true; }
public boolean equals(Object obj) { if (!(obj instanceof RoleAndDescription)) return false; if (this == obj) return true; RoleAndDescription other = (RoleAndDescription) obj; if (StringUtil.different(this.role, other.role)) return false; if (StringUtil.different(this.description, other.description)) return false; if (this.providerOnly != other.providerOnly) return false; return true; }
/** * Set the subject of the announcement. * * @param subject * The subject of the announcement. */ public void setSubject(String subject) { if (StringUtil.different(subject, m_subject)) { m_subject = subject; } } // setSubject
public boolean equals(Object obj) { if (!(obj instanceof RealmAndRole)) return false; if (this == obj) return true; RealmAndRole other = (RealmAndRole) obj; if (StringUtil.different(this.role, other.role)) return false; if (this.provided != other.provided) return false; if (this.active != other.active) return false; if (((this.realmId == null) && (other.realmId != null)) || ((this.realmId != null) && (other.realmId == null)) || ((this.realmId != null) && (other.realmId != null) && (!this.realmId.equals(other.realmId)))) return false; return true; }
/** * Set the resource content. * * @param content * An array containing the bytes of the resource's content. */ public void setContent(byte[] content) { if (content == null) { log.warn("setContent(): null content"); return; } // only if different if (StringUtil.different(content, m_body)) { // take the new body and length m_body = content; m_contentLength = m_body.length; // mark me as having a changed body m_bodyUpdated = true; } } // setContent
/** * Clear any pending delivery requests to the particular client window for * this element. * * @param address * The address of the client window. * @param elementId * The id of the html element. */ public void clear(String address, String elementId) { log.debug("clear(String {}, String {})", address, elementId); synchronized(locks[slot(address)]) { // find the entry in m_addresses List<Delivery> deliveries = m_addresses.get(address); // if not there we are done if (deliveries == null) return; // remove any Deliveries with this elementId deliveries.removeIf(delivery -> !StringUtil.different(delivery.getElement(), elementId)); // if none left, remove it from the list if (deliveries.isEmpty()) { m_addresses.remove(address); } } }
/** * Are these the same? * * @return true if obj is the same Delivery as this one. */ public boolean equals(Object obj) { if (!super.equals(obj)) return false; TestDelivery cob = (TestDelivery) obj; if (StringUtil.different(cob.getMessage(), getMessage() )) return false; return true; }}
/** * Are these the same? * * @return true if obj is the same Delivery as this one. */ public boolean equals(Object obj) { if (!super.equals(obj)) return false; ChatRestDelivery cob = (ChatRestDelivery) obj; if (StringUtil.different(cob.getMessage().getId(), getMessage().getId() )) return false; return true; }
if (user == null) return false; if ((StringUtil.different(site.getJoinerRole(), azg.getMaintainRole())) || (!site.isJoinable()))