Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,278 for maps (0.22 sec)

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

    import java.util.SortedMap;
    
    /**
     * Tests for {@link Maps#transformValues(SortedMap, Function)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MapsSortedTransformValuesTest extends AbstractMapsTransformValuesTest {
      @Override
      protected SortedMap<String, String> makeEmptyMap() {
        return Maps.transformValues(Maps.<String, String>newTreeMap(), Functions.<String>identity());
      }
    
    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)
  2. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        map.put("bar", 1);
        map.put("foo", 2);
        map.put("bar", 3);
        map.put("bar", 4);
        assertEquals("[1, 2, 3, 4]", map.values().toString());
        map.values().remove(2);
        assertEquals("{bar=[1, 3, 4]}", map.toString());
      }
    
      public void testLinkedEntries() {
        Multimap<String, Integer> map = create();
        map.put("bar", 1);
        map.put("foo", 2);
        map.put("bar", 3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

      @CheckForNull
      public K lowerKey(@ParametricNullness K key) {
        return Maps.keyOrNull(lowerEntry(key));
      }
    
      @Override
      @CheckForNull
      public K floorKey(@ParametricNullness K key) {
        return Maps.keyOrNull(floorEntry(key));
      }
    
      @Override
      @CheckForNull
      public K ceilingKey(@ParametricNullness K key) {
        return Maps.keyOrNull(ceilingEntry(key));
      }
    
      @Override
      @CheckForNull
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

      }
    
      public void testTailMapInclusive() {
        Map<String, Integer> map =
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).tailMap("three", true);
        assertThat(map.entrySet())
            .containsExactly(Maps.immutableEntry("three", 3), Maps.immutableEntry("two", 2))
            .inOrder();
      }
    
      public void testTailMapExclusive() {
        Map<String, Integer> map =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

      }
    
      public void testTailMapInclusive() {
        Map<String, Integer> map =
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).tailMap("three", true);
        assertThat(map.entrySet())
            .containsExactly(Maps.immutableEntry("three", 3), Maps.immutableEntry("two", 2))
            .inOrder();
      }
    
      public void testTailMapExclusive() {
        Map<String, Integer> map =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 27K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractNavigableMap.java

      @CheckForNull
      public K lowerKey(@ParametricNullness K key) {
        return Maps.keyOrNull(lowerEntry(key));
      }
    
      @Override
      @CheckForNull
      public K floorKey(@ParametricNullness K key) {
        return Maps.keyOrNull(floorEntry(key));
      }
    
      @Override
      @CheckForNull
      public K ceilingKey(@ParametricNullness K key) {
        return Maps.keyOrNull(ceilingEntry(key));
      }
    
      @Override
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/StandardTable.java

      }
    
      @LazyInit @CheckForNull private transient Map<R, Map<C, V>> rowMap;
    
      @Override
      public Map<R, Map<C, V>> rowMap() {
        Map<R, Map<C, V>> result = rowMap;
        return (result == null) ? rowMap = createRowMap() : result;
      }
    
      Map<R, Map<C, V>> createRowMap() {
        return new RowMap();
      }
    
      @WeakOuter
      class RowMap extends ViewCachingAbstractMap<R, Map<C, V>> {
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 29.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(Functions.forMap(map))
            .addEqualityGroup(Functions.forMap(map, null))
            .addEqualityGroup(Functions.forMap(map, 43))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testForMapWithDefault_includeSerializable() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("One", 1);
        map.put("Three", 3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top