Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 872 for entry (0.07 sec)

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

        assertMapEquals(ImmutableBiMap.ofEntries(entry("one", 1), entry("two", 2)), "one", 1, "two", 2);
      }
    
      public void testOfEntriesNull() {
        Entry<@Nullable Integer, Integer> nullKey = entry(null, 23);
        assertThrows(
            NullPointerException.class,
            () -> ImmutableBiMap.ofEntries((Entry<Integer, Integer>) nullKey));
        Entry<Integer, @Nullable Integer> nullValue =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

      public void testAsMapGet() {
        for (K key : sampleKeys()) {
          List<V> expectedValues = new ArrayList<>();
          for (Entry<K, V> entry : getSampleElements()) {
            if (entry.getKey().equals(key)) {
              expectedValues.add(entry.getValue());
            }
          }
    
          Collection<V> collection = multimap().asMap().get(key);
          if (expectedValues.isEmpty()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

          BiMap<Country, String> result = EnumHashBiMap.create(Country.class);
          for (Object o : entries) {
            Entry<Country, String> entry = (Entry<Country, String>) o;
            result.put(entry.getKey(), entry.getValue());
          }
          return result;
        }
    
        @Override
        public SampleElements<Entry<Country, String>> samples() {
          return new SampleElements<>(
              immutableEntry(Country.CANADA, "DOLLAR"),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java

          implements TestSetGenerator<Entry<K, V>> {
    
        public EntriesGenerator(
            OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>> multimapGenerator) {
          super(multimapGenerator);
        }
    
        @Override
        public Set<Entry<K, V>> create(Object... elements) {
          return (Set<Entry<K, V>>) super.create(elements);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ForwardingMapEntry.java

    import java.util.Map;
    import java.util.Map.Entry;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A map entry which forwards all its method calls to another map entry. Subclasses should override
     * one or more methods to modify the behavior of the backing map entry as desired per the <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 19 19:28:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

      }
    
      @Override
      public NavigableMap<K, V> descendingMap() {
        return new SafeTreeMap<>(delegate.descendingMap());
      }
    
      @Override
      public Set<Entry<K, V>> entrySet() {
        return new AbstractSet<Entry<K, V>>() {
          private Set<Entry<K, V>> delegate() {
            return delegate.entrySet();
          }
    
          @Override
          public boolean contains(Object object) {
            try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        K key = entry.getKey();
        V value = entry.getValue();
        multimap().removeAll(key);
        assertEquals(key, entry.getKey());
        assertEquals(value, entry.getValue());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashSet.java

          } else {
            // we need to update a pointer in an entry
            int entryIndex;
            int entry;
            do {
              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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

        for (Entry<K, V> entry : getSampleElements()) {
          expected.add(entry.getValue());
        }
        assertEqualIgnoringOrder(expected, multimap().values());
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
      public void testValuesInOrder() {
        List<V> expected = Lists.newArrayList();
        for (Entry<K, V> entry : getOrderedElements()) {
          expected.add(entry.getValue());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/MultiEdgesConnecting.java

        Iterator<? extends Entry<E, ?>> entries = outEdgeToNode.entrySet().iterator();
        return new AbstractIterator<E>() {
          @Override
          @CheckForNull
          protected E computeNext() {
            while (entries.hasNext()) {
              Entry<E, ?> entry = entries.next();
              if (targetNode.equals(entry.getValue())) {
                return entry.getKey();
              }
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top