Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 872 for entry (0.03 sec)

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

        Collection<Entry<K, V>> entries = getSampleEntries(getNumEntries() - 1);
    
        entries.add(entryWithNull);
    
        int expectedHashCode = 0;
        for (Entry<K, V> entry : entries) {
          expectedHashCode += hash(entry);
        }
    
        resetContainer(getSubjectGenerator().create(entries.toArray()));
        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries (where "
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                // feature
                for (final Map.Entry<String, String> entry : featureMap.entrySet()) {
                    parser.setFeature(entry.getKey(), "true".equalsIgnoreCase(entry.getValue()));
                }
    
                // property
                for (final Map.Entry<String, String> entry : propertyMap.entrySet()) {
                    parser.setProperty(entry.getKey(), entry.getValue());
                }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableBiMap.java

            return null;
          }
          int bucket = Hashing.smear(value.hashCode()) & mask;
          for (ImmutableMapEntry<K, V> entry = valueTable[bucket];
              entry != null;
              entry = entry.getNextInValueBucket()) {
            if (value.equals(entry.getValue())) {
              return entry.getKey();
            }
          }
          return null;
        }
    
        @Override
        ImmutableSet<V> createKeySet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        Iterator<Entry<String, Collection<Integer>>> collectionIterator =
            multimap.asMap().entrySet().iterator();
        Entry<String, Collection<Integer>> entry = collectionIterator.next();
        assertEquals("foo", entry.getKey());
        assertThat(entry.getValue()).containsExactly(5, 3).inOrder();
        entry = collectionIterator.next();
        assertEquals("bar", entry.getKey());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java

        @Override
        protected BiMap<String, String> create(Entry<String, String>[] entries) {
          ImmutableBiMap.Builder<String, String> builder = ImmutableBiMap.builder();
          for (Entry<String, String> entry : entries) {
            checkNotNull(entry);
            builder.put(entry.getKey(), entry.getValue());
          }
          return builder.build();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestEnumMapGenerator.java

        @SuppressWarnings("unchecked")
        Entry<AnEnum, String>[] array = (Entry<AnEnum, String>[]) new Entry<?, ?>[entries.length];
        int i = 0;
        for (Object o : entries) {
          @SuppressWarnings("unchecked")
          Entry<AnEnum, String> e = (Entry<AnEnum, String>) o;
          array[i++] = e;
        }
        return create(array);
      }
    
      protected abstract Map<AnEnum, String> create(Entry<AnEnum, String>[] entries);
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. 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;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/RegularImmutableMap.java

      }
    
      /** Makes an entry usable internally by a new ImmutableMap. */
      static <K, V> ImmutableMapEntry<K, V> makeImmutable(Entry<K, V> entry) {
        return makeImmutable(entry, entry.getKey(), entry.getValue());
      }
    
      private RegularImmutableMap(
          Entry<K, V>[] entries, @CheckForNull @Nullable ImmutableMapEntry<K, V>[] table, int mask) {
        this.entries = entries;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. 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;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

        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)));
        assertFalse(entry("foo", 1).equals(new Object()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top