Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,043 for entries (0.16 sec)

  1. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = Maps.newHashMap();
                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
                        map = Maps.filterEntries(map, FILTER_ENTRIES_1);
                        return Maps.filterEntries(map, FILTER_ENTRIES_2);
                      }
                    })
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashSet.java

              entryIndex = next - 1;
              entry = entries[entryIndex];
              next = CompactHashing.getNext(entry, mask);
            } while (next != srcNext);
            // here, entries[entryIndex] points to the old entry location; update it
            entries[entryIndex] = CompactHashing.maskCombine(entry, dstIndex + 1, mask);
          }
        } else {
          elements[dstIndex] = null;
          entries[dstIndex] = 0;
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

        List<Entry<K, V>> entries =
            Helpers.copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = entries.get(0);
          if (entries.size() >= 3) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        Set<Entry<@Nullable String, @Nullable Boolean>> entries = map.entrySet();
        assertTrue(entries.contains(Maps.immutableEntry("a", true)));
        assertTrue(entries.contains(Maps.<String, @Nullable Boolean>immutableEntry("b", null)));
        assertTrue(
            entries.contains(Maps.<@Nullable String, @Nullable Boolean>immutableEntry(null, null)));
    
        assertFalse(entries.contains(Maps.<String, @Nullable Boolean>immutableEntry("c", null)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/metacache-walk.go

    		// Process in sort order.
    		sort.Strings(entries)
    		dirStack := make([]string, 0, 5)
    		prefix = "" // Remove prefix after first level as we have already filtered the list.
    		if len(forward) > 0 {
    			// Conservative forwarding. Entries may be either objects or prefixes.
    			for i, entry := range entries {
    				if entry >= forward || strings.HasPrefix(forward, entry) {
    					entries = entries[i:]
    					break
    				}
    			}
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

      /**
       * Resizes the internal entries array to the specified capacity, which may be greater or less than
       * the current capacity.
       */
      void resizeEntries(int newCapacity) {
        this.keys = Arrays.copyOf(keys, newCapacity);
        this.values = Arrays.copyOf(values, newCapacity);
        long[] entries = this.entries;
        int oldCapacity = entries.length;
        entries = Arrays.copyOf(entries, newCapacity);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

                    new TestStringMapGenerator() {
                      @Override
                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = CompactLinkedHashMap.create();
                        for (Entry<String, String> entry : entries) {
                          map.put(entry.getKey(), entry.getValue());
                        }
                        return map;
                      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 21 14:41:51 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

            b = Multisets.immutableEntry(entries.get(1), sortedMultiset.count(entries.get(1)));
            c = Multisets.immutableEntry(entries.get(2), sortedMultiset.count(entries.get(2)));
          }
        }
      }
    
      /** Resets the contents of sortedMultiset to have entries a, c, for the navigation tests. */
      // Needed to stop Eclipse whining
      private void resetWithHole() {
        List<E> container = new ArrayList<>();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

      }
    
      private final transient ImmutableList<Entry<K, V>> entries;
      private final Map<K, V> forwardDelegate;
      private final Map<V, K> backwardDelegate;
    
      private JdkBackedImmutableBiMap(
          ImmutableList<Entry<K, V>> entries, Map<K, V> forwardDelegate, Map<V, K> backwardDelegate) {
        this.entries = entries;
        this.forwardDelegate = forwardDelegate;
        this.backwardDelegate = backwardDelegate;
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

                + " even if some keys are null.",
            getMap().equals(newHashMap(entries)));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherContainsNullKey() {
        Collection<Entry<K, V>> entries = getSampleEntries(getNumEntries() - 1);
        entries.add(entry(null, v3()));
        Map<K, V> other = newHashMap(entries);
    
        assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.8K bytes
    - Viewed (0)
Back to top