Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DescendingMap (0.05 sec)

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

        assertEquals("one", map.floorKey("r"));
        assertEquals("three", map.floorKey("three"));
    
        assertThat(map.descendingMap().entrySet())
            .containsExactly(mapEntry("two", 3), mapEntry("three", 5), mapEntry("one", 3))
            .inOrder();
        assertEquals(map.headMap("three", true), map.descendingMap().tailMap("three", true));
        assertThat(map.tailMap("three", false).entrySet()).contains(mapEntry("two", 3));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      @Override
      public ImmutableSortedMap<K, V> descendingMap() {
        // TODO(kevinb): The descendingMap is never actually cached at all. Either:
        //
        // - Cache it, and annotate the field with @LazyInit.
        // - Simplify the code below, and consider eliminating the field (b/287198172), which is also
        //   set by one of the constructors.
        ImmutableSortedMap<K, V> result = descendingMap;
        if (result == null) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        transient @Nullable NavigableMap<K, V> descendingMap;
    
        @Override
        public NavigableMap<K, V> descendingMap() {
          synchronized (mutex) {
            if (descendingMap == null) {
              return descendingMap = navigableMap(delegate().descendingMap(), mutex);
            }
            return descendingMap;
          }
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Aug 08 15:11:10 UTC 2025
    - 53K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        transient @Nullable NavigableMap<K, V> descendingMap;
    
        @Override
        public NavigableMap<K, V> descendingMap() {
          synchronized (mutex) {
            if (descendingMap == null) {
              return descendingMap = navigableMap(delegate().descendingMap(), mutex);
            }
            return descendingMap;
          }
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Aug 08 15:11:10 UTC 2025
    - 56.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals("one", map.floorKey("r"));
        assertEquals("three", map.floorKey("three"));
    
        assertThat(map.descendingMap().entrySet())
            .containsExactly(mapEntry("two", 3), mapEntry("three", 5), mapEntry("one", 3))
            .inOrder();
        assertEquals(map.headMap("three", true), map.descendingMap().tailMap("three", true));
        assertThat(map.tailMap("three", false).entrySet()).contains(mapEntry("two", 3));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
Back to top