@Override public boolean equals(Object o) { if (o instanceof MultiTransformation) { MultiTransformation<?> other = (MultiTransformation<?>) o; return transformations.equals(other.transformations); } return false; }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj instanceof FieldSet) { return this.collection.equals(((FieldSet) obj).collection); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof State) { @SuppressWarnings("unchecked") State<T> other = (State<T>) obj; return name.equals(other.name) && stateType == other.stateType && stateTransitions.equals(other.stateTransitions); } else { return false; } }
@Override public boolean equals(@Nullable Object obj) { if (obj instanceof InPredicate) { InPredicate<?> that = (InPredicate<?>) obj; return target.equals(that.target); } return false; }
public void testEquals_notACollection() { // noinspection EqualsBetweenInconvertibleTypes assertFalse( "A Collection should never equal an object that is not a Collection.", collection.equals("huh?")); } }
public void testEquals_null() { // noinspection ObjectEqualsNull assertFalse("An object should not be equal to null.", collection.equals(null)); }
@SuppressWarnings("SelfEquals") public void testEquals_self() { assertTrue("An Object should be equal to itself.", collection.equals(collection)); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ConsumerGroupDescription that = (ConsumerGroupDescription) o; return isSimpleConsumerGroup == that.isSimpleConsumerGroup && groupId.equals(that.groupId) && members.equals(that.members) && partitionAssignor.equals(that.partitionAssignor) && state.equals(that.state); }
@Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } if (other == null || getClass() != other.getClass()) { return false; } return getContent().equals(((AbstractRequestCondition<?>) other).getContent()); }
@Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } if (other == null || getClass() != other.getClass()) { return false; } return getContent().equals(((AbstractRequestCondition<?>) other).getContent()); }
@Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } if (other == null || getClass() != other.getClass()) { return false; } return getContent().equals(((AbstractMessageCondition<?>) other).getContent()); }
@Override public boolean equals(@NullableDecl Object obj) { if (obj instanceof InPredicate) { InPredicate<?> that = (InPredicate<?>) obj; return target.equals(that.target); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof SemanticGraph)) { return false; } SemanticGraph g = (SemanticGraph) o; return graph.equals(g.graph) && roots.equals(g.roots); }
@Override public boolean equals(@NullableDecl Object obj) { if (obj instanceof InPredicate) { InPredicate<?> that = (InPredicate<?>) obj; return target.equals(that.target); } return false; }
/** * Returns whether the given Datum contains the same features as this Datum. * Doesn't check the labels, should we change this? */ @SuppressWarnings("unchecked") @Override public boolean equals(Object o) { if (!(o instanceof Datum)) { return (false); } Datum<LabelType, FeatureType> d = (Datum<LabelType, FeatureType>) o; return features.equals(d.asFeatures()); }
public void testEquals_immutableList() { Collection<String> c = ImmutableList.of("a", "b", "c"); assertTrue(c.equals(ImmutableList.of("a", "b", "c"))); assertFalse(c.equals(ImmutableList.of("a", "c", "b"))); assertFalse(c.equals(ImmutableList.of("a", "b"))); assertFalse(c.equals(ImmutableList.of("a", "b", "c", "d"))); }
private boolean propertyValuesEqual( Object expected, Object readValue ) { if ( expected.getClass().isArray() ) { return arrayAsCollection( expected ).equals( arrayAsCollection( readValue ) ); } return expected.equals( readValue ); }
private boolean isSameShardingValue(final ListShardingValue shardingValue1, final ListShardingValue shardingValue2) { return isSameLogicTable(shardingValue1, shardingValue2) && shardingValue1.getColumnName().equals(shardingValue2.getColumnName()) && shardingValue1.getValues().equals(shardingValue2.getValues()); }
@Override public boolean isModified() { return !getUserDefinedUrls().equals(myLibrariesService.getLibraryRootUrls()) || myLibrariesService instanceof GoApplicationLibrariesService && ((GoApplicationLibrariesService)myLibrariesService).isUseGoPathFromSystemEnvironment() != myUseEnvGoPathCheckBox.isSelected(); }