Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 508 for maps (0.04 sec)

  1. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

    import com.google.common.collect.HashMultimap;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.Sets;
    import com.google.common.reflect.ClassPath;
    import com.google.common.testing.NullPointerTester.Visibility;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

      public void testEmptyBuilder() {
        ImmutableBiMap<String, Integer> map = new Builder<String, Integer>().build();
        assertEquals(Collections.<String, Integer>emptyMap(), map);
        assertEquals(Collections.<Integer, String>emptyMap(), map.inverse());
        assertSame(ImmutableBiMap.of(), map);
      }
    
      public void testSingletonBuilder() {
        ImmutableBiMap<String, Integer> map = new Builder<String, Integer>().put("one", 1).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

            // N.B. There will only be an entry in the map if the service has started
            for (Entry<Service, Stopwatch> entry : startupTimers.entrySet()) {
              Service service = entry.getKey();
              Stopwatch stopwatch = entry.getValue();
              if (!stopwatch.isRunning() && !(service instanceof NoOpService)) {
                loadTimes.add(Maps.immutableEntry(service, stopwatch.elapsed(MILLISECONDS)));
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/ServiceManager.java

       * have finished starting.
       *
       * @return Map of services and their corresponding startup time, the map entries will be ordered
       *     by startup time.
       * @since 31.0 (but only since 33.4.0 in the Android flavor)
       */
      @J2ObjCIncompatible
      public ImmutableMap<Service, Duration> startupDurations() {
        return ImmutableMap.copyOf(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/StandardRowSortedTable.java

       * RowSortedTable subinterface with the revised methods?
       */
    
      StandardRowSortedTable(
          SortedMap<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) {
        super(backingMap, factory);
      }
    
      private SortedMap<R, Map<C, V>> sortedBackingMap() {
        return (SortedMap<R, Map<C, V>>) backingMap;
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 15 15:41:16 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

          return (ImmutableRangeMap<K, V>) rangeMap;
        }
        Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges();
        ImmutableList.Builder<Range<K>> rangesBuilder = new ImmutableList.Builder<>(map.size());
        ImmutableList.Builder<V> valuesBuilder = new ImmutableList.Builder<>(map.size());
        for (Entry<Range<K>, ? extends V> entry : map.entrySet()) {
          rangesBuilder.add(entry.getKey());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.Optional;
    import java.util.OptionalDouble;
    import java.util.OptionalInt;
    import java.util.OptionalLong;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

    import java.util.SortedMap;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A sorted map which forwards all its method calls to another sorted map. Subclasses should
     * override one or more methods to modify the behavior of the backing sorted map as desired per the
     * <a href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Platform.java

          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return CompactHashMap.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        @SuppressWarnings("unchecked")
        Map<E, LockGraphNode> lockGraphNodes = (Map<E, LockGraphNode>) getOrCreateNodes(enumClass);
        return new WithExplicitOrdering<>(policy, lockGraphNodes);
      }
    
      @SuppressWarnings("unchecked")
      private static <E extends Enum<E>> Map<? extends E, LockGraphNode> getOrCreateNodes(
          Class<E> clazz) {
        Map<E, LockGraphNode> existing = (Map<E, LockGraphNode>) lockGraphNodesPerType.get(clazz);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
Back to top