/** {@inheritDoc} */ @Override public boolean equals(Object o) { return o == this || o instanceof GridDeploymentInfoBean && clsLdrId.equals(((GridDeploymentInfoBean)o).clsLdrId); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof GridGgfsListingEntry)) return false; GridGgfsListingEntry that = (GridGgfsListingEntry)o; return fileId.equals(that.fileId); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof GridGgfsListingEntry)) return false; GridGgfsListingEntry that = (GridGgfsListingEntry)o; return fileId.equals(that.fileId); }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj.getClass() == T1.class) { T1 that = (T1)obj; return topic == that.topic && id.equals(that.id); } return false; }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj.getClass() == T8.class) { T8 that = (T8)obj; return topic == that.topic && id1.equals(that.id1) && id2 == that.id2; } return false; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o == this) return true; if (o == null || getClass() != o.getClass()) return false; FileDescriptor that = (FileDescriptor)o; return fileId.equals(that.fileId) && isFile == that.isFile && fileName.equals(that.fileName) && (parentId == null ? that.parentId == null : parentId.equals(that.parentId)); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o == this) return true; if (o == null || getClass() != o.getClass()) return false; FileDescriptor that = (FileDescriptor)o; return fileId.equals(that.fileId) && isFile == that.isFile && fileName.equals(that.fileName) && (parentId == null ? that.parentId == null : parentId.equals(that.parentId)); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GridCacheQueueItemKey itemKey = (GridCacheQueueItemKey)o; return idx == itemKey.idx && queueId.equals(itemKey.queueId); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GridCacheQueueAdapter that = (GridCacheQueueAdapter) o; return id.equals(that.id); }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj.getClass() == T2.class) { T2 that = (T2)obj; return topic == that.topic && id1.equals(that.id1) && id2.equals(that.id2); } return false; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GridCacheSetItemKey that = (GridCacheSetItemKey)o; return setId.equals(that.setId) && item.equals(that.item); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; GridGgfsBlockKey that = (GridGgfsBlockKey)o; return blockId == that.blockId && fileId.equals(that.fileId) && F.eq(affKey, that.affKey) && evictExclude == that.evictExclude; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { assert id != null; return this == o || o instanceof GridEventAdapter && id.equals(((GridEvent)o).id()); }
/** * @param hdr Queue header. * @param id Expected queue unique ID. * @return {@code True} if queue was removed. */ private static boolean queueRemoved(@Nullable GridCacheQueueHeader hdr, GridUuid id) { return hdr == null || !id.equals(hdr.id()); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; GridGgfsBlockKey that = (GridGgfsBlockKey)o; return blockId == that.blockId && fileId.equals(that.fileId) && F.eq(affKey, that.affKey) && evictExclude == that.evictExclude; }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; assert obj instanceof GridTaskWorker; return ses.getId().equals(((GridTaskWorker<T, R>)obj).ses.getId()); }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null || getClass() != obj.getClass()) return false; GridGgfsFileInfo that = (GridGgfsFileInfo)obj; return id.equals(that.id) && blockSize == that.blockSize && len == that.len && F.eq(affKey, that.affKey) && F.eq(props, that.props) && F.eq(lockId, that.lockId); }
/** {@inheritDoc} */ @Override public GridComputeJobSibling getJobSibling(GridUuid jobId) throws GridException { for (GridComputeJobSibling sib : getJobSiblings()) if (sib.getJobId().equals(jobId)) return sib; return null; }
/** {@inheritDoc} */ @Override public GridComputeJobSibling getJobSibling(GridUuid jobId) throws GridException { A.notNull(jobId, "jobId"); Collection<GridComputeJobSibling> tmp = getJobSiblings(); for (GridComputeJobSibling sibling : tmp) if (sibling.getJobId().equals(jobId)) return sibling; return null; }