Refine search
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof Builder)) { return false; } Builder that = (Builder) o; return Objects.equal(this.format, that.format) && Objects.equal(this.clickAction, that.clickAction) && Objects.equal(this.hoverAction, that.hoverAction) && Objects.equal(this.shiftClickAction, that.shiftClickAction) && Objects.equal(this.children, that.children); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CommandSpec that = (CommandSpec) o; return Objects.equal(this.args, that.args) && Objects.equal(this.executor, that.executor) && Objects.equal(this.description, that.description) && Objects.equal(this.extendedDescription, that.extendedDescription) && Objects.equal(this.permission, that.permission) && Objects.equal(this.argumentParser, that.argumentParser); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final MemoryDataView other = (MemoryDataView) obj; return Objects.equal(this.map.entrySet(), other.map.entrySet()) && Objects.equal(this.path, other.path); }
void handleProgress(@Nonnull String id, @Nonnull String status, @Nullable String progress) { if (verbose) { if (progress == null) { log.info(MessageFormat.format("Image {0}: {1}", id, status)); } else { log.info(MessageFormat.format("Image {0}: {1} {2}", id, status, progress)); } } else { if (!Objects.equal(imageStatuses.get(id), status)) { imageStatuses.put(id, status); log.info(MessageFormat.format("Image {0}: {1}", id, status)); } } }
/** * Copy the current immutable object by setting a value for the {@link PluginDetail.MixinClass#initMethodName() initMethodName} attribute. * An equals check used to prevent copying of the same value by returning {@code this}. * @param value A new value for initMethodName (can be {@code null}) * @return A modified copy of the {@code this} object */ public final ImmutableMixinClass withInitMethodName(@Nullable String value) { if (Objects.equal(this.initMethodName, value)) return this; return new ImmutableMixinClass(this.type, this.interfaces, this.mixin, value, this.bytes); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LockRequest)) { return false; } LockRequest other = (LockRequest) obj; return lockMap.equals(other.lockMap) && lockTimeout.equals(other.lockTimeout) && (lockGroupBehavior == other.lockGroupBehavior) && (blockingMode == other.blockingMode) && Objects.equal(blockingDuration, other.blockingDuration) && Objects.equal(versionId, other.versionId); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LockServerOptions)) { return false; } LockServerOptions other = (LockServerOptions) obj; return Objects.equal(isStandaloneServer(), other.isStandaloneServer()) && Objects.equal(getMaxAllowedLockTimeout(), other.getMaxAllowedLockTimeout()) && Objects.equal(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift()) && Objects.equal(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration()) && Objects.equal(getMaxNormalLockAge(), other.getMaxNormalLockAge()) && Objects.equal(getRandomBitCount(), other.getRandomBitCount()) && Objects.equal(getLockStateLoggerDir(), other.getLockStateLoggerDir()) && Objects.equal(slowLogTriggerMillis(), other.slowLogTriggerMillis()); }
@Override public boolean equals(@Nullable final Object obj) { if (this == obj) {return true;} if (obj == null || getClass() != obj.getClass()) {return false;} final AttachmentError other = (AttachmentError) obj; return Objects.equal(this.logMessage, other.logMessage) && Objects.equal(this.localizedMessage, other.localizedMessage) && Objects.equal(this.filename, other.filename) && Objects.equal(this.reason, other.reason) && Objects.equal(this.exception, other.exception); }
@Override public boolean equals(@Nullable Object object) { if (object instanceof MapDifference.ValueDifference<?>) { MapDifference.ValueDifference<?> that = (MapDifference.ValueDifference<?>) object; return Objects.equal(this.left, that.leftValue()) && Objects.equal(this.right, that.rightValue()); } return false; }