- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,759 for _Equal (0.12 sec)
-
guava/src/com/google/common/collect/Table.java
/** * Compares the specified object with this cell for equality. Two cells are equal when they have * equal row keys, column keys, and values. */ @Override boolean equals(@CheckForNull Object obj); /** * Returns the hash code of this cell. * * <p>The hash code of a table cell is equal to {@link Objects#hashCode}{@code (e.getRowKey(), * e.getColumnKey(), e.getValue())}.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat Jun 17 14:40:53 UTC 2023 - 10.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/FilteredEntryMultimap.java
public Collection<V> get(@CheckForNull Object key) { Collection<V> result = unfiltered.asMap().get(key); if (result == null) { return null; } @SuppressWarnings("unchecked") // key is equal to a K, if not a K itself K k = (K) key; result = filterCollection(result, new ValuePredicate(k)); return result.isEmpty() ? null : result; } @Override @CheckForNull
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 11.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/Helpers.java
import java.util.ListIterator; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class Helpers { // Clone of Objects.equal static boolean equal(@Nullable Object a, @Nullable Object b) { return a == b || (a != null && a.equals(b)); } // Clone of Lists.newArrayList
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 17.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredEntryMultimap.java
public Collection<V> get(@CheckForNull Object key) { Collection<V> result = unfiltered.asMap().get(key); if (result == null) { return null; } @SuppressWarnings("unchecked") // key is equal to a K, if not a K itself K k = (K) key; result = filterCollection(result, new ValuePredicate(k)); return result.isEmpty() ? null : result; } @Override @CheckForNull
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 11.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
public final class ForwardingWrapperTester { private boolean testsEquals = false; /** * Asks for {@link Object#equals} and {@link Object#hashCode} to be tested. That is, forwarding * wrappers of equal instances should be equal. */ @CanIgnoreReturnValue public ForwardingWrapperTester includingEquals() { this.testsEquals = true; return this; } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 08 17:31:55 UTC 2024 - 9.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
public void clear() { throw new UnsupportedOperationException(); } @Override public int count(@Nullable Object element) { for (Entry<E> entry : entrySet()) { if (Objects.equal(entry.getElement(), element)) { return entry.getCount(); } } return 0; } @Override public int add(E element, int occurrences) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 5.5K bytes - Viewed (0) -
pkg/url/url_test.go
"istio.io/istio/pkg/test/util/assert" ) func TestURL(t *testing.T) { assert.Equal(t, BaseURL, "https://istio.io/", "base url should be equal") assert.Equal(t, DocsURL, "https://istio.io/"+DocsVersion+"/docs/", "docs url should be equal") assert.Equal(t, OpsURL, "https://istio.io/"+DocsVersion+"/docs/ops/", "ops url should be equal") assert.Equal(t, DeploymentRequirements, "https://istio.io/"+DocsVersion+"/docs/ops/deployment/requirements/",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 04 11:12:37 UTC 2024 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/values_test.go
// Compare types with schema against themselves if tc.lhs.Equal(tc.rhs) != types.Bool(tc.equal) { t.Errorf("expected Equals to return %v", tc.equal) } if tc.rhs.Equal(tc.lhs) != types.Bool(tc.equal) { t.Errorf("expected Equals to return %v", tc.equal) } // Compare types with schema against native types. This is slightly different than how
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 17.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers_test.go
req.Header.Set("Accept", accept) acceptWithReq := &lazyAccept{req} assert.Equal(t, accept, fmt.Sprintf("%v", acceptWithReq)) acceptWithoutReq := &lazyAccept{} assert.Equal(t, "unknown", fmt.Sprintf("%v", acceptWithoutReq)) } func TestLazyVerb(t *testing.T) { assert.Equal(t, "unknown", fmt.Sprintf("%v", &lazyVerb{})) u, _ := url.Parse("?watch=true") req := &http.Request{Method: "GET", URL: u}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Sep 03 15:25:35 UTC 2023 - 5.4K bytes - Viewed (0) -
src/maps/maps_test.go
func TestEqual(t *testing.T) { if !Equal(m1, m1) { t.Errorf("Equal(%v, %v) = false, want true", m1, m1) } if Equal(m1, (map[int]int)(nil)) { t.Errorf("Equal(%v, nil) = true, want false", m1) } if Equal((map[int]int)(nil), m1) { t.Errorf("Equal(nil, %v) = true, want false", m1) } if !Equal[map[int]int, map[int]int](nil, nil) { t.Error("Equal(nil, nil) = false, want true") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0)