Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 277 for setKey (0.03 sec)

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

    public class MultimapKeySetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testKeySet() {
        for (Entry<K, V> entry : getSampleElements()) {
          assertTrue(multimap().keySet().contains(entry.getKey()));
        }
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testKeySetContainsNullKeyPresent() {
        initMultimapWithNullKey();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/TestingRemovalListeners.java

          count.incrementAndGet();
          lastNotification = notification;
        }
    
        public int getCount() {
          return count.get();
        }
    
        public K getLastEvictedKey() {
          return lastNotification.getKey();
        }
    
        public V getLastEvictedValue() {
          return lastNotification.getValue();
        }
    
        public RemovalNotification<K, V> getLastNotification() {
          return lastNotification;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> entry(
          K key, V value) {
        return new AbstractMapEntry<K, V>() {
          @Override
          public K getKey() {
            return key;
          }
    
          @Override
          public V getValue() {
            return value;
          }
        };
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

            assertEquals(123, item.getId());
            assertEquals("and", item.getInput());
            assertNull(item.getNewInput());
        }
    
        public void test_getNewInput_setNewInput() {
            // Test getter and setter for newInput
            StopwordsItem item = new StopwordsItem(1, "or");
            assertNull(item.getNewInput());
    
            item.setNewInput("nor");
            assertEquals("nor", item.getNewInput());
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java

      }
    
      private String expectedToString(Set<Entry<K, V>> entries) {
        Map<K, V> reference = new LinkedHashMap<>();
        for (Entry<K, V> entry : entries) {
          reference.put(entry.getKey(), entry.getValue());
        }
        return reference.toString();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

    @GwtIncompatible // nottested
    @NullUnmarked
    public class FilteredMultimapTest extends TestCase {
    
      private static final Predicate<Entry<String, Integer>> ENTRY_PREDICATE =
          entry ->
              !Objects.equals(entry.getKey(), "badkey") && !Objects.equals(entry.getValue(), 55556);
    
      protected Multimap<String, Integer> create() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
        unfiltered.put("foo", 55556);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

              .containsAtLeastElementsIn(EnumSet.complementOf(EnumSet.of(UNNECESSARY)));
          for (Map.Entry<RoundingMode, Double> entry : expectedValues.entrySet()) {
            RoundingMode mode = entry.getKey();
            Double expectation = entry.getValue();
            assertWithMessage("roundToDouble(" + input + ", " + mode + ")")
                .that(BigDecimalMath.roundToDouble(input, mode))
                .isEqualTo(expectation);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<? extends K, ? extends Collection<? extends V>> entry : mapEntries) {
          K key = entry.getKey();
          Collection<? extends V> values = entry.getValue();
          ImmutableList<V> list =
              (valueComparator == null)
                  ? ImmutableList.copyOf(values)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                new TestStringMapGenerator() {
                  @Override
                  protected Map<String, String> create(Entry<String, String>[] entries) {
                    return singletonMap(entries[0].getKey(), entries[0].getValue());
                  }
                })
            .named("singletonMap")
            .withFeatures(
                MapFeature.ALLOWS_NULL_KEYS,
                MapFeature.ALLOWS_NULL_VALUES,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

              Entry<K, V> backingEntry = backingIterator.next();
              return new AbstractMapEntry<K, ImmutableSet<V>>() {
                @Override
                public K getKey() {
                  return backingEntry.getKey();
                }
    
                @Override
                public ImmutableSet<V> getValue() {
                  return ImmutableSet.of(backingEntry.getValue());
                }
              };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
Back to top