- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,777 for Equals (0.04 sec)
-
guava/src/com/google/common/collect/ImmutableSortedAsList.java
// TODO(kevinb): reconsider if it's really worth making feeble attempts at // sanity for inconsistent comparators. // The equals() check is needed when the comparator isn't compatible with // equals(). return (index >= 0 && get(index).equals(target)) ? index : -1; } @GwtIncompatible // ImmutableSortedSet.indexOf @Override public int lastIndexOf(@CheckForNull Object target) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 3.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
getList().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_shorterList() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Lists of different sizes should not be equal.", getList().equals(new ArrayList<E>(fewerElements))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.5K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ScmTest.java
new Scm().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Scm().equals(null)); new Scm().equals(new Scm()); } @Test void testEqualsIdentity() { Scm thing = new Scm(); assertTrue(thing.equals(thing)); } @Test void testToStringNullSafe() { assertNotNull(new Scm().toString()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ByFunctionOrdering.java
} @Override public boolean equals(@CheckForNull Object object) { if (object == this) { return true; } if (object instanceof ByFunctionOrdering) { ByFunctionOrdering<?, ?> that = (ByFunctionOrdering<?, ?>) object; return this.function.equals(that.function) && this.ordering.equals(that.ordering); } return false; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
getList().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_shorterList() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Lists of different sizes should not be equal.", getList().equals(new ArrayList<E>(fewerElements))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Predicate.java
* required, to have the following properties: * * <ul> * <li>Its execution does not cause any observable side effects. * <li>The computation is <i>consistent with equals</i>; that is, {@link Objects#equal * Objects.equal}{@code (a, b)} implies that {@code predicate.apply(a) == * predicate.apply(b))}. * </ul> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java
// Explicitly call `equals`; `assertEquals` might return fast assertTrue(foo1.equals(foo1)); assertEquals(control("foo", 1), foo1); assertEquals(control("bar", 2), entry("bar", 2)); assertFalse(control("foo", 1).equals(entry("foo", 2))); assertFalse(foo1.equals(control("bar", 1))); assertFalse(foo1.equals(new Object())); assertFalse(foo1.equals(null)); } public void testEqualsNull() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.2K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/DependencyManagementTest.java
} @Test void testEqualsNullSafe() { assertFalse(new DependencyManagement().equals(null)); new DependencyManagement().equals(new DependencyManagement()); } @Test void testEqualsIdentity() { DependencyManagement thing = new DependencyManagement(); 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 - 2.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/user/exbhv/UserBhv.java
throw new IllegalBehaviorStateException(msg, e); } } private boolean isAttribute(final String key) { return !NAME.equals(key) && !PASSWORD.equals(key) && !GROUPS.equals(key) && !ROLES.equals(key); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.7K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.5K bytes - Viewed (0)