Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 122 for immutableEntry (0.18 sec)

  1. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

      }
    
      @Override
      public int size() {
        return entries().size();
      }
    
      private boolean satisfies(@ParametricNullness K key, @ParametricNullness V value) {
        return predicate.apply(Maps.immutableEntry(key, value));
      }
    
      final class ValuePredicate implements Predicate<V> {
        @ParametricNullness private final K key;
    
        ValuePredicate(@ParametricNullness K key) {
          this.key = key;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMultimap.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 static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                Entry<Range<Integer>, Integer> expectedEntry = null;
                if (range1.contains(i)) {
                  expectedEntry = Maps.immutableEntry(range1, 1);
                } else if (range2.contains(i)) {
                  expectedEntry = Maps.immutableEntry(range2, 2);
                }
    
                assertEquals(expectedEntry, rangeMap.getEntry(i));
              }
            }
          }
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/AbstractSortedMultiset.java

      @CheckForNull
      public Entry<E> pollFirstEntry() {
        Iterator<Entry<E>> entryIterator = entryIterator();
        if (entryIterator.hasNext()) {
          Entry<E> result = entryIterator.next();
          result = Multisets.immutableEntry(result.getElement(), result.getCount());
          entryIterator.remove();
          return result;
        }
        return null;
      }
    
      @Override
      @CheckForNull
      public Entry<E> pollLastEntry() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

      }
    
      private int getCount(int index) {
        return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]);
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index));
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
        return isEmpty() ? null : getEntry(0);
      }
    
      @Override
      @CheckForNull
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        }
    
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test asMap().entrySet()
        assertSetIsUnmodifiable(
            multimap.asMap().entrySet(), Maps.immutableEntry(sampleKey, sampleValueAsCollection));
    
        // Test #values()
    
        assertMultimapRemainsUnmodified(multimap, originalEntries);
        if (!multimap.isEmpty()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute.
        // Set<Entry<Object, Object>> entries = map.entrySet();
        // assertThat(entries).containsExactly(
        //    Maps.immutableEntry(three, one), Maps.immutableEntry(one, two));
        // Set<Object> keys = map.keySet();
        // assertThat(keys).containsExactly(one, three);
        // Collection<Object> values = map.values();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

      }
    
      @WeakOuter
      private final class InverseEntries extends ImmutableList<Entry<V, K>> {
        @Override
        public Entry<V, K> get(int index) {
          Entry<K, V> entry = entries.get(index);
          return Maps.immutableEntry(entry.getValue(), entry.getKey());
        }
    
        @Override
        boolean isPartialView() {
          return false;
        }
    
        @Override
        public int size() {
          return entries.size();
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        ImmutableMap<String, Integer> map =
            new Builder<String, Integer>().put(Maps.immutableEntry("one", 1)).buildOrThrow();
        assertMapEquals(map, "one", 1);
      }
    
      public void testBuilder_withImmutableEntryAndNullContents() {
        Builder<String, Integer> builder = new Builder<>();
        try {
          builder.put(Maps.immutableEntry("one", (Integer) null));
          fail();
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMultimap.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 static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
Back to top