List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:com.thoughtworks.go.config.CaseInsensitiveString.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CaseInsensitiveString that = (CaseInsensitiveString) o; return Objects.equals(lowerCaseName, that.lowerCaseName); }
From source file:com.evolveum.midpoint.repo.sql.query2.hqm.condition.ExistsCondition.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ExistsCondition)) return false; ExistsCondition that = (ExistsCondition) o; return Objects.equals(innerQueryText, that.innerQueryText) && Objects.equals(linkingCondition, that.linkingCondition); }
From source file:com.jivesoftware.os.routing.bird.shared.InstanceChanged.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//ww w .ja v a2 s.co m if (getClass() != obj.getClass()) { return false; } final InstanceChanged other = (InstanceChanged) obj; if (!Objects.equals(this.hostKey, other.hostKey)) { return false; } if (!Objects.equals(this.instanceId, other.instanceId)) { return false; } return true; }
From source file:th.co.geniustree.dental.model.Department.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w. java2 s .c o m if (getClass() != obj.getClass()) { return false; } final Department other = (Department) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:org.awesomeagile.integrations.hackpad.HackpadStatus.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from w ww .j a v a 2 s . c om*/ if (o == null || getClass() != o.getClass()) { return false; } HackpadStatus that = (HackpadStatus) o; return Objects.equals(success, that.success); }
From source file:com.inkubator.hrm.web.converter.PaySalaryComponentConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { ResourceBundle resourceBundle = ResourceBundle.getBundle("Messages", new Locale(FacesUtil.getSessionAttribute(HRMConstant.BAHASA_ACTIVE).toString())); String messages = StringUtils.EMPTY; Integer data = (Integer) value; if (Objects.equals(data, HRMConstant.PAY_SALARY_COMPONENT_TUNJANGAN)) { messages = resourceBundle.getString("paySalaryComponent.paySalaryComponent_tunjangan"); } else if (Objects.equals(data, HRMConstant.PAY_SALARY_COMPONENT_POTONGAN)) { messages = resourceBundle.getString("paySalaryComponent.paySalaryComponent_potongan"); } else if (Objects.equals(data, HRMConstant.PAY_SALARY_COMPONENT_SUBSIDI)) { messages = resourceBundle.getString("paySalaryComponent.paySalaryComponent_subsidi"); }/*w w w.j a v a 2s . c o m*/ return messages; }
From source file:org.hawkular.component.availcreator.AvailDataMessage.java
@Override public boolean equals(Object o) { if (this == o) { return true; }//w ww.j av a 2 s . c om if (o == null || getClass() != o.getClass()) { return false; } AvailDataMessage that = (AvailDataMessage) o; return Objects.equals(availData, that.availData); }
From source file:me.ferrybig.javacoding.webmapper.EndpointResult.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*ww w . j a va 2s .co m*/ if (getClass() != obj.getClass()) { return false; } final EndpointResult<?> other = (EndpointResult<?>) obj; if (this.result != other.result) { return false; } if (!Objects.equals(this.data, other.data)) { return false; } if (!Objects.equals(this.contentType, other.contentType)) { return false; } return true; }
From source file:fr.mycellar.domain.stock.Input.java
@Override protected boolean dataEquals(IdentifiedEntity other) { Input input = (Input) other;//www . jav a 2 s. c o m return Objects.equals(getDate(), input.getDate()) && Objects.equals(getCellar(), input.getCellar()) && Objects.equals(getCharges(), input.getCharges()) && Objects.equals(getNumber(), input.getNumber()) && Objects.equals(getPrice(), input.getPrice()) && Objects.equals(getSource(), input.getSource()) && Objects.equals(getBottle(), input.getBottle()); }
From source file:com.connio.sdk.resource.property.Condition.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Condition that = (Condition) o; return Objects.equals(when, that.when) && Objects.equals(value, that.value); }