equivalence = (set1, set2) -> { if (!set1.equals(set2)) { return false;
public void testToImmutableSortedSet_customComparator() { Collector<String, ?, ImmutableSortedSet<String>> collector = ImmutableSortedSet.toImmutableSortedSet(String.CASE_INSENSITIVE_ORDER); BiPredicate<ImmutableSortedSet<String>, ImmutableSortedSet<String>> equivalence = (set1, set2) -> set1.equals(set2) && set1.asList().equals(set2.asList()) && set1.comparator().equals(set2.comparator()); ImmutableSortedSet<String> expected = ImmutableSortedSet.orderedBy(String.CASE_INSENSITIVE_ORDER).add("a", "B", "c", "d").build(); CollectorTester.of(collector, equivalence) .expectCollects(expected, "a", "B", "a", "c", "b", "b", "d"); }
@Override public boolean equals(@Nullable Object o) { if (o == this) { return true; } else if (!(o instanceof AsSet)) { return false; } return _value.equals(((AsSet) o)._value); }
@Override public boolean equals(Object other) { return other != null && other.getClass() == this.getClass() && ((UnionType) other).members.equals(members); }
@Override public boolean equals(Object other) { return other != null && other.getClass() == this.getClass() && ((UnionType) other).members.equals(members); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } InDimFilter that = (InDimFilter) o; if (values != null ? !values.equals(that.values) : that.values != null) { return false; } if (!dimension.equals(that.dimension)) { return false; } return extractionFn != null ? extractionFn.equals(that.extractionFn) : that.extractionFn == null; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } DxDexKey dxDexKey = (DxDexKey) o; return mAdditionalParameters.equals(dxDexKey.mAdditionalParameters) && Objects.equal(mIsMultiDex, dxDexKey.mIsMultiDex); }
@Override public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof PatternIndexConfigDocument ) ) { return false; } final PatternIndexConfigDocument that = (PatternIndexConfigDocument) o; if ( defaultConfig != null ? !defaultConfig.equals( that.defaultConfig ) : that.defaultConfig != null ) { return false; } if ( pathIndexConfigs != null ? !pathIndexConfigs.equals( that.pathIndexConfigs ) : that.pathIndexConfigs != null ) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ResolvedRuleGroup other = (ResolvedRuleGroup) obj; if (order == null) { if (other.order != null) return false; } else if (!order.equals(other.order)) return false; if (rules == null) { if (other.rules != null) return false; } else if (!rules.equals(other.rules)) return false; if (relatedSubject == null) { if (other.relatedSubject != null) return false; } else if (!relatedSubject.equals(other.relatedSubject)) return false; return true; }
public boolean equals(Object o) { if (o == this) { return true; } else if (o instanceof IndexInfo) { IndexInfo other = (IndexInfo) o; return count() == other.count() && uids().equals(other.uids()); } else { return false; } }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof MembersInjectionBinding) { MembersInjectionBinding that = (MembersInjectionBinding) o; return (this.key.equals(that.key())) && (this.explicitDependencies.equals(that.explicitDependencies())) && (this.membersInjectedType.equals(that.membersInjectedType())) && (this.unresolved.equals(that.unresolved())) && (this.injectionSites.equals(that.injectionSites())); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof ProvisionBinding) { ProvisionBinding that = (ProvisionBinding) o; return (this.contributionType.equals(that.contributionType())) && (this.key.equals(that.key())) && (this.bindingElement.equals(that.bindingElement())) && (this.contributingModule.equals(that.contributingModule())) && (this.kind.equals(that.kind())) && (this.nullableType.equals(that.nullableType())) && (this.wrappedMapKeyAnnotation.equals(that.wrappedMapKeyAnnotation())) && (this.provisionDependencies.equals(that.provisionDependencies())) && (this.injectionSites.equals(that.injectionSites())) && (this.unresolved.equals(that.unresolved())) && (this.scope.equals(that.scope())); } return false; }
BiPredicate<ImmutableSortedSet<TypeWithDuplicates>, ImmutableSortedSet<TypeWithDuplicates>> equivalence = (set1, set2) -> { if (!set1.equals(set2)) { return false;
public void testToImmutableSortedSet_customComparator() { Collector<String, ?, ImmutableSortedSet<String>> collector = ImmutableSortedSet.toImmutableSortedSet(String.CASE_INSENSITIVE_ORDER); BiPredicate<ImmutableSortedSet<String>, ImmutableSortedSet<String>> equivalence = (set1, set2) -> set1.equals(set2) && set1.asList().equals(set2.asList()) && set1.comparator().equals(set2.comparator()); ImmutableSortedSet<String> expected = ImmutableSortedSet.orderedBy(String.CASE_INSENSITIVE_ORDER) .add("a", "B", "c", "d") .build(); CollectorTester.of(collector, equivalence) .expectCollects(expected, "a", "B", "a", "c", "b", "b", "d"); }