Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 94 for k0 (0.01 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.java

    public class SortedSetMultimapGetTester<K, V>
        extends AbstractMultimapTester<K, V, SortedSetMultimap<K, V>> {
      public void testValueComparator() {
        assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java

    public class MultimapContainsEntryTester<K, V>
        extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsEntryYes() {
        assertTrue(multimap().containsEntry(k0(), v0()));
      }
    
      public void testContainsEntryNo() {
        assertFalse(multimap().containsEntry(k3(), v3()));
      }
    
      public void testContainsEntryAgreesWithGet() {
        for (K k : sampleKeys()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. docs/debugging/hash-set/main.go

    	if cardinality <= 0 {
    		return -1
    	}
    	// use the faster version as per siphash docs
    	// https://github.com/dchest/siphash#usage
    	k0, k1 := binary.LittleEndian.Uint64(id[0:8]), binary.LittleEndian.Uint64(id[8:16])
    	sum64 := siphash.Hash(k0, k1, []byte(key))
    	return int(sum64 % uint64(cardinality))
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. bin/diff_yaml.py

        if res is None:
            return ""
    
        return "{}::{}::{}".format(res['apiVersion'],
                                   res['kind'],
                                   res['metadata']['name'])
    
    
    def keydiff(k0, k1):
        k0s = set(k0)
        k1s = set(k1)
        added = k1s - k0s
        removed = k0s - k1s
        common = k0s.intersection(k1s)
    
        return added, removed, common
    
    
    def drop_keys(res, k1, k2):
        if k2 in res[k1]:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Mar 03 16:14:57 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java

    public class MultimapContainsKeyTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsKeyYes() {
        assertTrue(multimap().containsKey(k0()));
      }
    
      public void testContainsKeyNo() {
        assertFalse(multimap().containsKey(k3()));
      }
    
      public void testContainsKeysFromKeySet() {
        for (K k : multimap().keySet()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. callbacks/preload.go

    //
    //	// schema has a "k0" relation and a "k7.k8" embedded relation
    //	parsePreloadMap(schema, map[string][]interface{}{
    //		clause.Associations: {"arg1"},
    //		"k1":                {"arg2"},
    //		"k2.k3":             {"arg3"},
    //		"k4.k5.k6":          {"arg4"},
    //	})
    //	// preloadMap is
    //	map[string]map[string][]interface{}{
    //		"k0": {},
    //		"k7": {
    //			"k8": {},
    //		},
    //		"k1": {},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java

    public class MapContainsKeyTester<K, V> extends AbstractMapTester<K, V> {
      @CollectionSize.Require(absent = ZERO)
      public void testContains_yes() {
        assertTrue("containsKey(present) should return true", getMap().containsKey(k0()));
      }
    
      public void testContains_no() {
        assertFalse("containsKey(notPresent) should return false", getMap().containsKey(k3()));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java

    public class MultimapContainsEntryTester<K, V>
        extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsEntryYes() {
        assertTrue(multimap().containsEntry(k0(), v0()));
      }
    
      public void testContainsEntryNo() {
        assertFalse(multimap().containsEntry(k3(), v3()));
      }
    
      public void testContainsEntryAgreesWithGet() {
        for (K k : sampleKeys()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java

            .testEquals();
      }
    
      public void testEqualsFalse() {
        List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements());
        targetEntries.add(mapEntry(k0(), v3()));
        new EqualsTester()
            .addEqualityGroup(multimap())
            .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray()))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

    @IgnoreJRERequirement // We opt into library desugaring for our tests.
    public class MapReplaceAllTester<K, V> extends AbstractMapTester<K, V> {
      private SampleElements<K> keys() {
        return new SampleElements<>(k0(), k1(), k2(), k3(), k4());
      }
    
      private SampleElements<V> values() {
        return new SampleElements<>(v0(), v1(), v2(), v3(), v4());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testReplaceAllRotate() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top