Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 409 for Maps (0.17 sec)

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

            ImmutableList.of(
                Maps.immutableEntry("foo", 99),
                Maps.immutableEntry("foo", 88),
                Maps.immutableEntry("bar", 77));
    
        for (final int startIndex : new int[] {0, 3, 5}) {
          List<Entry<String, Integer>> list =
              Lists.newArrayList(
                  Maps.immutableEntry("foo", 2),
                  Maps.immutableEntry("foo", 3),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java

      SortedMap<String, Integer> createUnfiltered() {
        return Maps.newTreeMap();
      }
    
      public void testFirstAndLastKeyFilteredMap() {
        SortedMap<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("apple", 2);
        unfiltered.put("banana", 6);
        unfiltered.put("cat", 3);
        unfiltered.put("dog", 5);
    
        SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

        public SampleElements<Entry<Country, String>> samples() {
          return new SampleElements<>(
              Maps.immutableEntry(Country.CANADA, "DOLLAR"),
              Maps.immutableEntry(Country.CHILE, "PESO"),
              Maps.immutableEntry(Country.UK, "POUND"),
              Maps.immutableEntry(Country.JAPAN, "YEN"),
              Maps.immutableEntry(Country.SWITZERLAND, "FRANC"));
        }
    
        @SuppressWarnings("unchecked")
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Tables.java

       *
       * <p>The table is serializable if {@code backingMap}, {@code factory}, the maps generated by
       * {@code factory}, and the table contents are all serializable.
       *
       * <p>Note: the table assumes complete ownership over of {@code backingMap} and the maps returned
       * by {@code factory}. Those objects should not be manually updated and they should not use soft,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

            .containsExactly(
                Maps.<@Nullable String, Integer>immutableEntry(null, 7),
                Maps.<@Nullable String, Integer>immutableEntry(null, 3),
                Maps.<@Nullable String, Integer>immutableEntry(null, 1),
                Maps.<String, @Nullable Integer>immutableEntry("tree", null),
                Maps.immutableEntry("tree", 0),
                Maps.immutableEntry("google", 6),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/FunctionsTest.java

      public void testComposition() {
        Map<String, Integer> mJapaneseToInteger = Maps.newHashMap();
        mJapaneseToInteger.put("Ichi", 1);
        mJapaneseToInteger.put("Ni", 2);
        mJapaneseToInteger.put("San", 3);
        Function<String, Integer> japaneseToInteger = Functions.forMap(mJapaneseToInteger);
    
        Map<Integer, String> mIntegerToSpanish = Maps.newHashMap();
        mIntegerToSpanish.put(1, "Uno");
        mIntegerToSpanish.put(3, "Tres");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/FunctionsTest.java

      public void testComposition() {
        Map<String, Integer> mJapaneseToInteger = Maps.newHashMap();
        mJapaneseToInteger.put("Ichi", 1);
        mJapaneseToInteger.put("Ni", 2);
        mJapaneseToInteger.put("San", 3);
        Function<String, Integer> japaneseToInteger = Functions.forMap(mJapaneseToInteger);
    
        Map<Integer, String> mIntegerToSpanish = Maps.newHashMap();
        mIntegerToSpanish.put(1, "Uno");
        mIntegerToSpanish.put(3, "Tres");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

                multimap.entryPredicate(), Maps.<V>valuePredicateOnEntries(Predicates.in(c))));
      }
    
      @Override
      public boolean retainAll(Collection<?> c) {
        return Iterables.removeIf(
            multimap.unfiltered().entries(),
            // explicit <Entry<K, V>> is required to build with JDK6
            Predicates.<Entry<K, V>>and(
                multimap.entryPredicate(),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
        assertTrue(
            SortedIterables.hasSameComparator(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SparseImmutableTable.java

          ImmutableSet<R> rowSpace,
          ImmutableSet<C> columnSpace) {
        Map<R, Integer> rowIndex = Maps.indexMap(rowSpace);
        Map<R, Map<C, V>> rows = Maps.newLinkedHashMap();
        for (R row : rowSpace) {
          rows.put(row, new LinkedHashMap<C, V>());
        }
        Map<C, Map<R, V>> columns = Maps.newLinkedHashMap();
        for (C col : columnSpace) {
          columns.put(col, new LinkedHashMap<R, V>());
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top