Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,771 for keys2 (0.04 sec)

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

        this.keys = keys;
        this.values = values;
      }
    
      @Override
      public SampleElements<Entry<K, V>> samples() {
        return SampleElements.mapEntries(keys, values);
      }
    
      @Override
      public Set<Entry<K, V>> create(Object... elements) {
        Entry<K, V>[] entries = createArray(elements.length);
        System.arraycopy(elements, 0, entries, 0, elements.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. pkg/ctrlz/topics/collection.go

    func (r *staticCollection) Name() string {
    	return r.name
    }
    
    // Keys is implementation of ReadableCollection.Keys.
    func (r *staticCollection) Keys() ([]string, error) {
    	keys := make([]string, 0, len(r.items))
    	for k := range r.items {
    		keys = append(keys, k)
    	}
    	sort.Strings(keys)
    
    	return keys, nil
    }
    
    // Get is implementation of ReadableCollection.Get.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. pilot/pkg/credentials/kube/secrets.go

    }
    
    func truncatedKeysMessage(data map[string][]byte) string {
    	keys := []string{}
    	for k := range data {
    		keys = append(keys, k)
    	}
    	sort.Strings(keys)
    	if len(keys) < 3 {
    		return strings.Join(keys, ", ")
    	}
    	return fmt.Sprintf("%s, and %d more...", strings.Join(keys[:3], ", "), len(keys)-3)
    }
    
    // extractRoot extracts the root certificate
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ArrayTable.java

      }
    
      /**
       * Associates the value {@code null} with the specified keys, assuming both keys are valid. If
       * either key is null or isn't among the keys provided during construction, this method has no
       * effect.
       *
       * <p>This method is equivalent to {@code put(rowKey, columnKey, null)} when both provided keys
       * are valid.
       *
       * @param rowKey row key of mapping to be erased
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. internal/store/batch.go

    // Batch represents an ordered batch
    type Batch[K key, T any] struct {
    	keys  []K
    	items map[K]T
    	limit uint32
    
    	sync.Mutex
    }
    
    // Add adds the item to the batch
    func (b *Batch[K, T]) Add(key K, item T) error {
    	b.Lock()
    	defer b.Unlock()
    
    	if b.isFull() {
    		return ErrBatchFull
    	}
    
    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Oct 07 15:07:38 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. pkg/controller/util/selectors/bimultimap.go

    func (m *BiMultimap) Select(key Key) (keys []Key, ok bool) {
    	m.mux.RLock()
    	defer m.mux.RUnlock()
    
    	selectingObject, ok := m.selectingObjects[key]
    	if !ok {
    		// Does not exist.
    		return nil, false
    	}
    	keys = make([]Key, 0)
    	if labeled, ok := m.labeledBySelecting[selectingObject.selectorKey]; ok {
    		for _, labeledObject := range labeled.objects {
    			keys = append(keys, labeledObject.key)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 21:41:32 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key1 = new Key(1);
          String value1 = key1.toString();
          Key key2 = new Key(2);
          String value2 = key2.toString();
          assertSame(value1, cache.getUnchecked(key1));
          assertSame(value2, cache.getUnchecked(key2));
          assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).containsExactly(value1, value2);
          assertEquals(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 6.1K bytes
    - Viewed (0)
  8. pilot/pkg/xds/xds_cache_test.go

    		}
    	})
    
    	t.Run("clear all", func(t *testing.T) {
    		c := model.NewXdsCache()
    		start := time.Now()
    		c.Add(ep1, &model.PushRequest{Start: start}, any1)
    		c.Add(ep2, &model.PushRequest{Start: start}, any2)
    
    		c.ClearAll()
    		if len(c.Keys(model.EDSType)) != 0 {
    			t.Fatalf("expected no keys, got: %v", c.Keys(model.EDSType))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 31 20:43:08 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/CapabilityNotationParserFactoryTest.groovy

            [group: 'foo']               | "Required keys [name, version] are missing from map {group=foo}."
            [name: 'foo']                | "Required keys [group, version] are missing from map {name=foo}."
            [name: 'foo', version: 'v1'] | "Required keys [group] are missing from map {name=foo, version=v1}."
            [name: null]                 | "Required keys [group, name, version] are missing from map {name=null}."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java

        this.keys = keys;
        this.values = values;
      }
    
      @Override
      public SampleElements<Entry<K, V>> samples() {
        return SampleElements.mapEntries(keys, values);
      }
    
      @Override
      public Set<Entry<K, V>> create(Object... elements) {
        Entry<K, V>[] entries = createArray(elements.length);
        System.arraycopy(elements, 0, entries, 0, elements.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top