- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,777 for Equals (0.1 sec)
-
compat/maven-model/src/test/java/org/apache/maven/model/ParentTest.java
new Parent().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Parent().equals(null)); new Parent().equals(new Parent()); } @Test void testEqualsIdentity() { Parent thing = new Parent(); assertTrue(thing.equals(thing)); } @Test void testToStringNullSafe() { assertNotNull(new Parent().toString()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.5K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/PrerequisitesTest.java
} @Test void testEqualsNullSafe() { assertFalse(new Prerequisites().equals(null)); new Prerequisites().equals(new Prerequisites()); } @Test void testEqualsIdentity() { Prerequisites thing = new Prerequisites(); assertTrue(thing.equals(thing)); } @Test void testToStringNullSafe() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/SiteTest.java
new Site().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Site().equals(null)); new Site().equals(new Site()); } @Test void testEqualsIdentity() { Site thing = new Site(); assertTrue(thing.equals(thing)); } @Test void testToStringNullSafe() { assertNotNull(new Site().toString()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java
"Two Maps should not be equal if exactly one of them contains a null value.", getMap().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerMap() { Collection<Entry<K, V>> fewerEntries = getSampleEntries(getNumEntries() - 1); assertFalse( "Maps of different sizes should not be equal.", getMap().equals(newHashMap(fewerEntries))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
HashCode hashCodeA = HashCode.fromBytes(bytesA); HashCode hashCodeB = HashCode.fromBytes(bytesB); // They aren't equal... assertFalse(hashCodeA.equals(hashCodeB)); // But they still have the same Object#hashCode() value. // Technically not a violation of the equals/hashCode contract, but...? assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/TypeArtifactFilter.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/FunctionalEquivalence.java
} @Override public boolean equals(@CheckForNull Object obj) { if (obj == this) { return true; } if (obj instanceof FunctionalEquivalence) { FunctionalEquivalence<?, ?> that = (FunctionalEquivalence<?, ?>) obj; return function.equals(that.function) && resultEquivalence.equals(that.resultEquivalence); } return false; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon May 01 19:48:29 UTC 2023 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EquivalenceTest.java
.test(); } public void testPairwiseEquivalent_equals() { new EqualsTester() .addEqualityGroup(Equivalence.equals().pairwise(), Equivalence.equals().pairwise()) .addEqualityGroup(Equivalence.identity().pairwise()) .testEquals(); } private enum LengthFunction implements Function<String, Integer> { INSTANCE;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 6.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
assertFalse( "Two Sets should not be equal if exactly one of them contains null.", getSet().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerSet() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Sets of different sizes should not be equal.", getSet().equals(MinimalSet.from(fewerElements))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
assertFalse( "Two Sets should not be equal if exactly one of them contains null.", getSet().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerSet() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Sets of different sizes should not be equal.", getSet().equals(MinimalSet.from(fewerElements))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0)