Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 638 for entryOf (0.54 sec)

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

      public void testEmptyRangeSubMultisetSupportingAdd(SortedMultiset<E> multiset) {
        for (Entry<E> entry : Arrays.asList(a, b, c)) {
          expectAddFailure(multiset, entry);
        }
      }
    
      private static int totalSize(Iterable<? extends Entry<?>> entries) {
        int sum = 0;
        for (Entry<?> entry : entries) {
          sum += entry.getCount();
        }
        return sum;
      }
    
      private enum SubMultisetSpec {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  2. cmd/metacache-walk.go

    				entries[i] = ""
    				continue
    			}
    			if hasSuffixByte(entry, SlashSeparatorChar) {
    				if strings.HasSuffix(entry, globalDirSuffixWithSlash) {
    					// Add without extension so it is sorted correctly.
    					entry = strings.TrimSuffix(entry, globalDirSuffixWithSlash) + slashSeparator
    					dirObjects[entry] = struct{}{}
    					entries[i] = entry
    					continue
    				}
    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)
  3. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
        assertEquals("null x 2", entry(NE, 2).toString());
      }
    
      public void testEquals() {
        assertEquals(control("foo", 1), entry("foo", 1));
        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
        assertFalse(entry("foo", 1).equals(control("bar", 1)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.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 SetMultimap<String, String> create(Entry<String, String>[] entries);
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMultimap.java

          if (object instanceof Entry) {
            Entry<?, ?> entry = (Entry<?, ?>) object;
            return multimap.containsEntry(entry.getKey(), entry.getValue());
          }
          return false;
        }
    
        // redeclare to help optimizers with b/310253115
        @SuppressWarnings("RedundantOverride")
        @Override
        @J2ktIncompatible // serialization
        @GwtIncompatible // serialization
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/ArrayMap.java

                        final Entry<K, V> entry = (Entry<K, V>) o;
                        final int index = (entry.hashCode & 0x7FFFFFFF) % mapTable.length;
                        for (Entry<K, V> e = mapTable[index]; e != null; e = e.next) {
                            if (e.equals(entry)) {
                                return true;
                            }
                        }
                        return false;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 20.6K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

      }
    
      boolean removeEntriesIf(Predicate<? super Entry<K, Collection<V>>> predicate) {
        Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator();
        boolean changed = false;
        while (entryIterator.hasNext()) {
          Entry<K, Collection<V>> entry = entryIterator.next();
          K key = entry.getKey();
          Collection<V> collection = filterCollection(entry.getValue(), new ValuePredicate(key));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TreeRangeMap.java

      /** Returns the range that spans the given range and entry, if the entry can be coalesced. */
      private static <K extends Comparable, V> Range<K> coalesce(
          Range<K> range, V value, @CheckForNull Entry<Cut<K>, RangeMapEntry<K, V>> entry) {
        if (entry != null
            && entry.getValue().getKey().isConnected(range)
            && entry.getValue().getValue().equals(value)) {
          return range.span(entry.getValue().getKey());
        }
        return range;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

      private static Map<String, String> toHashMap(Entry<String, String>[] entries) {
        return populate(new HashMap<String, String>(), entries);
      }
    
      // TODO: call conversion constructors or factory methods instead of using
      // populate() on an empty map
      private static <T, M extends Map<T, String>> M populate(M map, Entry<T, String>[] entries) {
        for (Entry<T, String> entry : entries) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        return map().size();
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        if (object instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) object;
          V value = map().get(entry.getKey());
          return value != null && value.equals(entry.getValue());
        }
        return false;
      }
    
      @Override
      boolean isPartialView() {
        return map().isPartialView();
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top