List of usage examples for com.jgoodies.common.base Objects equals
public static boolean equals(Object o1, Object o2)
From source file:com.aurel.track.admin.customize.role.FieldForRoleBean.java
License:Open Source License
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/* w w w . j a v a 2s . c om*/ if (!(obj instanceof FieldForRoleBean)) { return false; } return Objects.equals(((FieldForRoleBean) obj).getFieldLabel(), this.getFieldLabel()); }
From source file:com.aurel.track.admin.server.logging.LoggingLevelBean.java
License:Open Source License
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w.jav a 2 s.c o m if (!(obj instanceof FieldForRoleBean)) { return false; } return Objects.equals(((LoggingLevelBean) obj).getClassName(), this.getClassName()); }
From source file:de.metas.ui.web.attachments.DocumentAttachments.java
License:Open Source License
/** * If the document contains some attachment related tabs, it will send an "stale" notification to frontend. * In this way, frontend will be aware of this and will have to refresh the tab. */// w w w . ja v a 2s .com private void notifyRelatedDocumentTabsChanged() { final ImmutableSet<DetailId> attachmentRelatedTabIds = entityDescriptor.getIncludedEntities().stream() .filter(includedEntityDescriptor -> Objects.equals(includedEntityDescriptor.getTableNameOrNull(), I_AD_AttachmentEntry.Table_Name)) .map(includedEntityDescriptor -> includedEntityDescriptor.getDetailId()) .collect(ImmutableSet.toImmutableSet()); if (attachmentRelatedTabIds.isEmpty()) { return; } websocketPublisher.staleTabs(documentPath.getWindowId(), documentPath.getDocumentId(), attachmentRelatedTabIds); }