Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for DescendingMap (0.12 sec)

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

              ImmutableMap<Range<Integer>, Integer> descendingMap = rangeMap.asDescendingMapOfRanges();
              assertEquals(expectedAsMap, asMap);
              assertEquals(expectedAsMap, descendingMap);
              SerializableTester.reserializeAndAssert(asMap);
              SerializableTester.reserializeAndAssert(descendingMap);
              assertEquals(
                  ImmutableList.copyOf(asMap.entrySet()).reverse(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

              ImmutableMap<Range<Integer>, Integer> descendingMap = rangeMap.asDescendingMapOfRanges();
              assertEquals(expectedAsMap, asMap);
              assertEquals(expectedAsMap, descendingMap);
              SerializableTester.reserializeAndAssert(asMap);
              SerializableTester.reserializeAndAssert(descendingMap);
              assertEquals(
                  ImmutableList.copyOf(asMap.entrySet()).reverse(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

            assertThat(navigableMap.headMap(key, inclusive).descendingMap().entrySet())
                .containsExactlyElementsIn(expected.headMap(key, inclusive).descendingMap().entrySet())
                .inOrder();
            assertThat(navigableMap.tailMap(key, inclusive).descendingMap().entrySet())
                .containsExactlyElementsIn(expected.tailMap(key, inclusive).descendingMap().entrySet())
                .inOrder();
          }
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

        }
    
        @LazyInit @CheckForNull private transient UnmodifiableNavigableMap<K, V> descendingMap;
    
        @Override
        public NavigableMap<K, V> descendingMap() {
          UnmodifiableNavigableMap<K, V> result = descendingMap;
          return (result == null)
              ? descendingMap = new UnmodifiableNavigableMap<>(delegate.descendingMap(), this)
              : result;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

        }
    
        @LazyInit @CheckForNull private transient UnmodifiableNavigableMap<K, V> descendingMap;
    
        @Override
        public NavigableMap<K, V> descendingMap() {
          UnmodifiableNavigableMap<K, V> result = descendingMap;
          return (result == null)
              ? descendingMap = new UnmodifiableNavigableMap<>(delegate.descendingMap(), this)
              : result;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

          super(delegate);
        }
    
        @Override
        public NavigableMap<K, V> create(Object... entries) {
          NavigableMap<K, V> map = (NavigableMap<K, V>) delegate.create(entries);
          return map.descendingMap();
        }
    
        @Override
        public Iterable<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) {
          insertionOrder = castOrCopyToList(delegate.order(insertionOrder));
          reverse(insertionOrder);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        @CheckForNull transient NavigableMap<K, V> descendingMap;
    
        @Override
        public NavigableMap<K, V> descendingMap() {
          synchronized (mutex) {
            if (descendingMap == null) {
              return descendingMap = navigableMap(delegate().descendingMap(), mutex);
            }
            return descendingMap;
          }
        }
    
        @Override
        @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        @CheckForNull transient NavigableMap<K, V> descendingMap;
    
        @Override
        public NavigableMap<K, V> descendingMap() {
          synchronized (mutex) {
            if (descendingMap == null) {
              return descendingMap = navigableMap(delegate().descendingMap(), mutex);
            }
            return descendingMap;
          }
        }
    
        @Override
        @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
Back to top