List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:io.appium.uiautomator2.utils.AlertHelpers.java
@Nullable private static UiObject2 filterButtonByLabel(Collection<UiObject2> buttons, String label) { for (UiObject2 button : buttons) { if (Objects.equals(button.getText(), label)) { return button; }//from w ww .j a va2 s . c o m } return null; }
From source file:com.vsct.dt.hesperides.indexation.search.PlatformApplicationSearchResponse.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//from w ww. ja va 2 s . c o m if (obj == null || getClass() != obj.getClass()) { return false; } final PlatformApplicationSearchResponse other = (PlatformApplicationSearchResponse) obj; return Objects.equals(this.applicationName, other.applicationName) && Objects.equals(this.platformName, other.platformName); }
From source file:eu.europa.ec.fisheries.uvms.rest.dto.ResponseDto.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w w w .j a v a 2 s .c o m*/ if (getClass() != obj.getClass()) { return false; } final ResponseDto<?> other = (ResponseDto<?>) obj; if (!Objects.equals(this.data, other.data)) { return false; } if (!Objects.equals(this.code, other.code)) { return false; } return true; }
From source file:com.autodesk.client.model.JsonApiVersion.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/* w ww . ja v a2 s . c o m*/ if (o == null || getClass() != o.getClass()) { return false; } JsonApiVersion jsonApiVersion = (JsonApiVersion) o; return Objects.equals(this.jsonapi, jsonApiVersion.jsonapi); }
From source file:com.compomics.colims.core.ontology.ols.Ontology.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }// ww w .j av a 2 s.co m if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Ontology other = (Ontology) obj; if (!Objects.equals(this.nameSpace, other.nameSpace)) { return false; } if (!Objects.equals(this.prefix, other.prefix)) { return false; } if (!Objects.equals(this.title, other.title)) { return false; } if (!Objects.equals(this.baseUris, other.baseUris)) { return false; } if (!Objects.equals(this.idUrl, other.idUrl)) { return false; } return true; }
From source file:io.gravitee.management.model.ResourceEntity.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ResourceEntity that = (ResourceEntity) o; return Objects.equals(id, that.id); }
From source file:com.linksinnovation.elearning.model.Quiz.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from ww w . j ava 2 s . co m if (getClass() != obj.getClass()) { return false; } final Quiz other = (Quiz) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:org.hawkular.client.metrics.model.AvailabilityDataPoint.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AvailabilityDataPoint dataPoint = (AvailabilityDataPoint) o; return Objects.equals(timestamp, dataPoint.timestamp) && Objects.equals(value, dataPoint.value); }
From source file:com.inkubator.hrm.web.converter.ModelReferensiConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { String message = StringUtils.EMPTY; // Pay Salary Component id String paySalaryComponentId = component.getAttributes().get("paySalaryComponentId").toString(); try {//from w w w. j a v a2 s .c o m //get specifik from paysalaryComponent->modelComponent->specifik PaySalaryComponentService paySalaryComponentService = (PaySalaryComponentService) ServiceWebUtil .getService("paySalaryComponentService"); PaySalaryComponent paySalaryComponent = paySalaryComponentService .getEntityByPkWithDetail(Long.valueOf(paySalaryComponentId)); //if specific == loan schema if (Objects.equals(paySalaryComponent.getModelComponent().getSpesific(), HRMConstant.MODEL_COMP_LOAN)) { LoanSchemaService loanSchemaService = (LoanSchemaService) ServiceWebUtil .getService("loanSchemaService"); message = loanSchemaService .getLoanSchemaNameByPk(Long.valueOf(paySalaryComponent.getModelReffernsil())); } //if specific == reimbursment schema if (Objects.equals(paySalaryComponent.getModelComponent().getSpesific(), HRMConstant.MODEL_COMP_REIMBURSEMENT)) { ReimbursmentSchemaService reimbursmentSchemaService = (ReimbursmentSchemaService) ServiceWebUtil .getService("reimbursmentSchemaService"); message = reimbursmentSchemaService .getReimbursmentSchemaNameByPk(Long.valueOf(paySalaryComponent.getModelReffernsil())); } //if specific ==benefit group if (Objects.equals(paySalaryComponent.getModelComponent().getSpesific(), HRMConstant.MODEL_COMP_BENEFIT_TABLE)) { BenefitGroupService benefitGroupService = (BenefitGroupService) ServiceWebUtil .getService("benefitGroupService"); message = benefitGroupService .getBenefitGroupNameByPk(Long.valueOf(paySalaryComponent.getModelReffernsil())); } } catch (Exception ex) { Logger.getLogger(ModelReferensiConverter.class.getName()).log(Level.SEVERE, null, ex); } return message; }
From source file:ch.cyberduck.ui.browser.SearchFilter.java
@Override public boolean equals(final Object o) { if (this == o) { return true; }/*from w ww. j a v a 2 s.co m*/ if (!(o instanceof SearchFilter)) { return false; } final SearchFilter that = (SearchFilter) o; return Objects.equals(input, that.input); }