Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 84 for ImmutableEntry (0.17 sec)

  1. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).containsExactly(value1, value2);
          assertEquals(
              ImmutableSet.of(immutableEntry(key1, value1), immutableEntry(key2, value2)),
              cache.asMap().entrySet());
        }
      }
    
      public void testInvalidate() {
        for (LoadingCache<Key, String> cache : caches()) {
          Key key1 = new Key(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

          SampleElements<E> samples = gen.samples();
          return new SampleElements<>(
              Multisets.immutableEntry(samples.e0(), 3),
              Multisets.immutableEntry(samples.e1(), 4),
              Multisets.immutableEntry(samples.e2(), 1),
              Multisets.immutableEntry(samples.e3(), 5),
              Multisets.immutableEntry(samples.e4(), 2));
        }
    
        @Override
        public Set<Multiset.Entry<E>> create(Object... entries) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

    import static com.google.common.base.Predicates.in;
    import static com.google.common.base.Predicates.not;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static com.google.common.collect.Maps.immutableEntry;
    import static java.util.Collections.unmodifiableList;
    import static java.util.Collections.unmodifiableSet;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.MoreObjects;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertThat(builder.build().entries()).containsExactly(Maps.immutableEntry("key", "value"));
      }
    
      public void testBuilderWithExpectedKeysPositive() {
        ImmutableListMultimap.Builder<String, String> builder =
            ImmutableListMultimap.builderWithExpectedKeys(1);
        builder.put("key", "value");
        assertThat(builder.build().entries()).containsExactly(Maps.immutableEntry("key", "value"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        Iterator<Entry<E>> entryIterator = entrySet().iterator();
        if (!entryIterator.hasNext()) {
          return null;
        }
        Entry<E> entry = entryIterator.next();
        return Multisets.immutableEntry(entry.getElement(), entry.getCount());
      }
    
      @Override
      @CheckForNull
      public Entry<E> lastEntry() {
        return delegate().lastEntry();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                Entry<Range<Integer>, Integer> expectedEntry = null;
                if (range1.contains(i)) {
                  expectedEntry = immutableEntry(range1, 1);
                } else if (range2.contains(i)) {
                  expectedEntry = immutableEntry(range2, 2);
                }
    
                assertEquals(expectedEntry, rangeMap.getEntry(i));
              }
            }
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multisets.java

      public static <E extends @Nullable Object> Multiset.Entry<E> immutableEntry(
          @ParametricNullness E e, int n) {
        return new ImmutableEntry<>(e, n);
      }
    
      static class ImmutableEntry<E extends @Nullable Object> extends AbstractEntry<E>
          implements Serializable {
        @ParametricNullness private final E element;
        private final int count;
    
        ImmutableEntry(@ParametricNullness E element, int count) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Multisets.java

      public static <E extends @Nullable Object> Multiset.Entry<E> immutableEntry(
          @ParametricNullness E e, int n) {
        return new ImmutableEntry<>(e, n);
      }
    
      static class ImmutableEntry<E extends @Nullable Object> extends AbstractEntry<E>
          implements Serializable {
        @ParametricNullness private final E element;
        private final int count;
    
        ImmutableEntry(@ParametricNullness E element, int count) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

    /**
     * Tests for {@link Multisets#immutableEntry}.
     *
     * @author Mike Bostock
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MultisetsImmutableEntryTest extends TestCase {
      private static final @Nullable String NE = null;
    
      private static <E extends @Nullable Object> Entry<E> entry(final E element, final int count) {
        return Multisets.immutableEntry(element, count);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/SingletonImmutableBiMap.java

    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.CollectPreconditions.checkEntryNotNull;
    import static com.google.common.collect.Maps.immutableEntry;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top