Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 181 for getValue (0.9 sec)

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

        BiMap<K, V> bimap = (BiMap<K, V>) map;
    
        for (Entry<K, V> entry : map.entrySet()) {
          assertEquals(entry.getKey() + "=" + entry.getValue(), entry.toString());
          assertEquals(entry.getKey(), bimap.inverse().get(entry.getValue()));
        }
    
        assertEquals("{" + JOINER.join(map.entrySet()) + "}", map.toString());
        assertEquals("[" + JOINER.join(map.entrySet()) + "]", map.entrySet().toString());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 16:16:28 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java

          ImmutableBiMap.Builder<String, String> builder = ImmutableBiMap.builder();
          for (Entry<String, String> entry : entries) {
            builder.put(entry.getKey(), entry.getValue());
          }
          return builder.build();
        }
      }
    
      public static class ImmutableBiMapCopyOfGenerator extends TestStringBiMapGenerator {
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. android/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());
        }
        assertEqualInOrder(expected, multimap().values());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMapValues.java

          @Override
          public boolean hasNext() {
            return entryItr.hasNext();
          }
    
          @Override
          public V next() {
            return entryItr.next().getValue();
          }
        };
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return object != null && Iterators.contains(iterator(), object);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      protected final V v0() {
        return e0().getValue();
      }
    
      protected final K k1() {
        return e1().getKey();
      }
    
      protected final V v1() {
        return e1().getValue();
      }
    
      protected final K k2() {
        return e2().getKey();
      }
    
      protected final V v2() {
        return e2().getValue();
      }
    
      protected final K k3() {
        return e3().getKey();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TableCollectors.java

                    mergeFunction),
            (table1, table2) -> {
              for (Table.Cell<R, C, V> cell2 : table2.cellSet()) {
                mergeTables(
                    table1, cell2.getRowKey(), cell2.getColumnKey(), cell2.getValue(), mergeFunction);
              }
              return table1;
            });
      }
    
      private static final class ImmutableTableCollectorState<R, C, V> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertEquals(null, entry.getKey());
        assertThat(entry.getValue()).containsExactly(7, 3, 1);
        entry = iterator.next();
        assertEquals("tree", entry.getKey());
        assertThat(entry.getValue()).containsExactly(null, 0);
        entry = iterator.next();
        assertEquals("google", entry.getKey());
        assertThat(entry.getValue()).containsExactly(6, 2);
      }
    
      public void testOrderedEntries() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey());
        assertEquals("test", map.entrySet().iterator().next().getValue());
        assertThrows(
            UnsupportedOperationException.class, () -> map.entrySet().iterator().next().setValue(1));
      }
    
      public void testEntrySetToArrayMutationThrows() {
        map.putInstance(String.class, "test");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

          // requireNonNull is safe because the first `n` elements have been filled in.
          entryArray[i] = makeImmutable(requireNonNull(entryArray[i]));
          K key = entryArray[i].getKey();
          V value = entryArray[i].getValue();
          V oldValue = delegateMap.put(key, value);
          if (oldValue != null) {
            if (throwIfDuplicateKeys) {
              throw conflictException("key", entryArray[i], entryArray[i].getKey() + "=" + oldValue);
            }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableEntry.java

      }
    
      @Override
      @ParametricNullness
      public final K getKey() {
        return key;
      }
    
      @Override
      @ParametricNullness
      public final V getValue() {
        return value;
      }
    
      @Override
      @ParametricNullness
      public final V setValue(@ParametricNullness V value) {
        throw new UnsupportedOperationException();
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 19 21:29:44 GMT 2023
    - 1.7K bytes
    - Viewed (0)
Back to top