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 int hashCode() { return Objects.hashCode( hitCount, missCount, loadSuccessCount, loadExceptionCount, totalLoadTime, evictionCount); }
@Override public String toString() { return Objects.toStringHelper(this) .add("taskLock", taskLock) .add("taskIds", taskIds) .toString(); } }
@Override public boolean remove(Object o) { Iterator<Entry<K, V>> entryItr = unfiltered.entrySet().iterator(); while (entryItr.hasNext()) { Entry<K, V> entry = entryItr.next(); if (predicate.apply(entry) && Objects.equal(entry.getValue(), o)) { entryItr.remove(); return true; } } return false; }
@Override public String toString() { return Objects.toStringHelper(this) .add("id", id) .add("type", type) .add("name", name) .add("description", description) .add("entities", "[" + firstNonNull(entities.size(), emptyList()) + "]") .toString(); } }
@Override public AWSCredentials getCredentials() { File credentials = new File(Objects.firstNonNull(H2O.OPT_ARGS.aws_credentials, DEFAULT_CREDENTIALS_LOCATION)); try { return new PropertiesCredentials(credentials); } catch (IOException e) { throw new AmazonClientException("Unable to load AWS credentials from file " + credentials); } }
@Override public boolean equals(@Nullable Object obj) { if (obj instanceof ConstantFunction) { ConstantFunction<?> that = (ConstantFunction<?>) obj; return Objects.equal(value, that.value); } return false; }
public static JsonElement escape(JsonElement v) { if( v.isJsonObject() ) return escape(v.getAsJsonObject()); if( v.isJsonArray() ) return escape(v.getAsJsonArray()); return Objects.firstNonNull(SPECIAL.get(v), v); }
@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 other) { if (this == other) { return true; } if (other instanceof HostAndPort) { HostAndPort that = (HostAndPort) other; return Objects.equal(this.host, that.host) && this.port == that.port; } return false; }
/** * {@inheritDoc} * * <p><b>Note:</b> This hash code is consistent with exact equality of the calculated statistics, * including the floating point values. See the note on {@link #equals} for details. */ @Override public int hashCode() { return Objects.hashCode(xStats, yStats, sumOfProductsOfDeltas); }
String version = Objects.firstNonNull(H2O.OPT_ARGS.hdfs_version, DEFAULT_HDFS_VERSION);
@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); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof ElementOrder)) { return false; } ElementOrder<?> other = (ElementOrder<?>) obj; return (type == other.type) && Objects.equal(comparator, other.comparator); }
/** * {@inheritDoc} * * <p><b>Note:</b> This hash code is consistent with exact equality of the calculated statistics, * including the floating point values. See the note on {@link #equals} for details. */ @Override public int hashCode() { return Objects.hashCode(count, mean, sumOfSquaresOfDeltas, min, max); }
@Override public String toString() { return Objects.toStringHelper(this) .add("id", id) .add("status", status) .add("duration", duration) .toString(); } }
@Override public String getMessage() { return Objects.firstNonNull(super.getMessage(), "") + " " + DISABLE_INDEX_ON_FAILURE_MSG + disableIndexOnFailure + ","; } }
private BiEntry<K, V> seekByValue(@Nullable Object value, int valueHash) { for (BiEntry<K, V> entry = hashTableVToK[valueHash & mask]; entry != null; entry = entry.nextInVToKBucket) { if (valueHash == entry.valueHash && Objects.equal(value, entry.value)) { return entry; } } return null; }