Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 429 for _Equal (0.12 sec)

  1. android/guava/src/com/google/common/collect/Comparators.java

          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
       * equal to the element that preceded it, according to the specified comparator. Note that this is
       * always true when the iterable has fewer than two elements.
       */
      public static <T extends @Nullable Object> boolean isInOrder(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. android/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       instances.
       *   <li>For the constructor or static factory method used to construct instances, it's checked
       *       that when equal parameters are passed, the result instance should also be equal; and vice
       *       versa.
       *   <li>If a non-private constructor or non-private static factory method exists:
       *       <ul>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  8. pkg/kubelet/util/manager/cache_based_manager_test.go

    			return 0
    		}
    		return item.refCount
    	}
    	assert.Equal(t, 3, refs("ns1", "s1"))
    	assert.Equal(t, 1, refs("ns1", "s10"))
    	assert.Equal(t, 3, refs("ns1", "s2"))
    	assert.Equal(t, 3, refs("ns1", "s3"))
    	assert.Equal(t, 2, refs("ns1", "s30"))
    	assert.Equal(t, 2, refs("ns1", "s4"))
    	assert.Equal(t, 4, refs("ns1", "s5"))
    	assert.Equal(t, 2, refs("ns1", "s50"))
    	assert.Equal(t, 0, refs("ns1", "s6"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. src/slices/slices_test.go

    	for _, test := range equalIntTests {
    		if got := Equal(test.s1, test.s2); got != test.want {
    			t.Errorf("Equal(%v, %v) = %t, want %t", test.s1, test.s2, got, test.want)
    		}
    	}
    	for _, test := range equalFloatTests {
    		if got := Equal(test.s1, test.s2); got != test.wantEqual {
    			t.Errorf("Equal(%v, %v) = %t, want %t", test.s1, test.s2, got, test.wantEqual)
    		}
    	}
    }
    
    // equal is simply ==.
    func equal[T comparable](v1, v2 T) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_image_test.go

    	imageRef, err := fakeManager.PullImage(ctx, kubecontainer.ImageSpec{Image: "busybox"}, nil, nil)
    	assert.NoError(t, err)
    	assert.Equal(t, "busybox", imageRef)
    
    	images, err := fakeManager.ListImages(ctx)
    	assert.NoError(t, err)
    	assert.Equal(t, 1, len(images))
    	assert.Equal(t, images[0].RepoTags, []string{"busybox"})
    }
    
    func TestPullImageWithError(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top