Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 825 for Entry (0.03 sec)

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

        @SuppressWarnings("unchecked")
        Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length];
        int i = 0;
        for (Object o : entries) {
          @SuppressWarnings("unchecked")
          Entry<String, String> e = (Entry<String, String>) o;
          array[i++] = e;
        }
        return create(array);
      }
    
      protected abstract Map<String, String> create(Entry<String, String>[] entries);
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        DummyEntry<Object, Object> entry = createDummyEntry(key, hash, value, null);
        segment.recordWrite(entry, 1, map.ticker.read());
        segment.table.set(0, entry);
        segment.readCount.incrementAndGet();
        segment.count = 1;
        segment.totalWeight = 1;
    
        assertSame(entry, table.get(0));
        assertSame(entry, segment.accessQueue.peek());
        assertSame(entry, segment.writeQueue.peek());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

      @Override
      public boolean remove(@CheckForNull Object o) {
        Predicate<? super Entry<K, V>> entryPredicate = multimap.entryPredicate();
        for (Iterator<Entry<K, V>> unfilteredItr = multimap.unfiltered().entries().iterator();
            unfilteredItr.hasNext(); ) {
          Entry<K, V> entry = unfilteredItr.next();
          if (entryPredicate.apply(entry) && Objects.equal(entry.getValue(), o)) {
            unfilteredItr.remove();
            return true;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/SparseImmutableTable.java

            new ImmutableMap.Builder<>(rows.size());
        for (Entry<R, Map<C, V>> row : rows.entrySet()) {
          rowBuilder.put(row.getKey(), ImmutableMap.copyOf(row.getValue()));
        }
        this.rowMap = rowBuilder.buildOrThrow();
    
        ImmutableMap.Builder<C, ImmutableMap<R, V>> columnBuilder =
            new ImmutableMap.Builder<>(columns.size());
        for (Entry<C, Map<R, V>> col : columns.entrySet()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Maps.java

      private enum EntryFunction implements Function<Entry<?, ?>, @Nullable Object> {
        KEY {
          @Override
          @CheckForNull
          public Object apply(Entry<?, ?> entry) {
            return entry.getKey();
          }
        },
        VALUE {
          @Override
          @CheckForNull
          public Object apply(Entry<?, ?> entry) {
            return entry.getValue();
          }
        };
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        // Store a local reference to the cache entry. If the backing map is immutable, this,
        // in combination with immutable cache entries, will ensure a thread-safe cache.
        CacheEntry<K, V> entry;
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        entry = cacheEntry1;
        if (entry != null && entry.key == key) {
          return entry.value;
        }
        entry = cacheEntry2;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        DummyEntry<Object, Object> entry = createDummyEntry(key, hash, value, null);
        segment.recordWrite(entry, 1, map.ticker.read());
        segment.table.set(0, entry);
        segment.readCount.incrementAndGet();
        segment.count = 1;
        segment.totalWeight = 1;
    
        assertSame(entry, table.get(0));
        assertSame(entry, segment.accessQueue.peek());
        assertSame(entry, segment.writeQueue.peek());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/ReferenceEntry.java

      /** Sets the entry access time in ns. */
      @SuppressWarnings("GoodTime") // b/122668874
      void setAccessTime(long time);
    
      /** Returns the next entry in the access queue. */
      ReferenceEntry<K, V> getNextInAccessQueue();
    
      /** Sets the next entry in the access queue. */
      void setNextInAccessQueue(ReferenceEntry<K, V> next);
    
      /** Returns the previous entry in the access queue. */
      ReferenceEntry<K, V> getPreviousInAccessQueue();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

              contents.add(entry.getElement());
            }
          }
          return ((Multiset<E>) gen.create(contents.toArray())).entrySet();
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Multiset.Entry<E>[] createArray(int length) {
          return (Multiset.Entry<E>[]) new Multiset.Entry<?>[length];
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                ImmutableMap.ofEntries(entry(1, 2), entry(2, 3), entry(3, 1)),
                map(1, 2, 2, 3, 3, 1))
            .addEqualityGroup(
                ImmutableMap.of(1, 1, 2, 2, 3, 3, 4, 4),
                ImmutableMap.builder().put(1, 1).put(2, 2).put(3, 3).put(4, 4).buildOrThrow(),
                ImmutableMap.ofEntries(entry(1, 1), entry(2, 2), entry(3, 3), entry(4, 4)),
                map(1, 1, 2, 2, 3, 3, 4, 4))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top