Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for caps (0.13 sec)

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

        LinkedHashMap<K, V> map = Maps.newLinkedHashMap();
        map.put(key, value);
        return map;
      }
    
      @Generates
      static <K, V> ImmutableMap<K, V> generateImmutableMap(K key, V value) {
        return ImmutableMap.of(key, value);
      }
    
      @Empty
      static <K, V> ConcurrentMap<K, V> generateConcurrentMap() {
        return Maps.newConcurrentMap();
      }
    
      @Generates
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to {@link Set} instances. Also see this class's counterparts
     * {@link Lists}, {@link Maps} and {@link Queues}.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/CollectionUtilitiesExplained#sets">{@code Sets}</a>.
     *
     * @author Kevin Bourrillion
     * @author Jared Levy
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Maps.java

     * "https://github.com/google/guava/wiki/CollectionUtilitiesExplained#maps">{@code Maps}</a>.
     *
     * @author Kevin Bourrillion
     * @author Mike Bostock
     * @author Isaac Shum
     * @author Louis Wasserman
     * @since 2.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Maps {
      private Maps() {}
    
      private enum EntryFunction implements Function<Entry<?, ?>, @Nullable Object> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        LinkedHashMap<K, V> map = Maps.newLinkedHashMap();
        map.put(key, value);
        return map;
      }
    
      @Generates
      static <K, V> ImmutableMap<K, V> generateImmutableMap(K key, V value) {
        return ImmutableMap.of(key, value);
      }
    
      @Empty
      static <K, V> ConcurrentMap<K, V> generateConcurrentMap() {
        return Maps.newConcurrentMap();
      }
    
      @Generates
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      /**
       * Returns a builder that creates immutable sorted maps whose keys are ordered by their natural
       * ordering. The sorted maps use {@link Ordering#natural()} as the comparator.
       */
      public static <K extends Comparable<?>, V> Builder<K, V> naturalOrder() {
        return new Builder<>(Ordering.natural());
      }
    
      /**
       * Returns a builder that creates immutable sorted maps with an explicit comparator. If the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java

     * declared in the POM.
     *
     */
    public class ProjectModelResolver implements ModelResolver {
    
        private static final int MAX_CAP = 0x7fff;
    
        private final RepositorySystemSession session;
    
        private final RequestTrace trace;
    
        private final String context = "project";
    
        private List<RemoteRepository> repositories;
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

        if (uniques < contents.length / 2) {
          // Deduplication eliminated many of the elements.  We don't want to retain an arbitrarily
          // large array relative to the number of elements, so we cap the ratio.
          contents = Arrays.copyOf(contents, uniques);
        }
        return new RegularImmutableSortedSet<E>(
            ImmutableList.<E>asImmutableList(contents, uniques), comparator);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

            "Multiple entries with same " + conflictDescription + ": " + entry1 + " and " + entry2);
      }
    
      /**
       * A builder for creating immutable map instances, especially {@code public static final} maps
       * ("constant maps"). Example:
       *
       * <pre>{@code
       * static final ImmutableMap<String, Integer> WORD_TO_INT =
       *     new ImmutableMap.Builder<String, Integer>()
       *         .put("one", 1)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

      /** Returns a new builder for an immutable range map. */
      public static <K extends Comparable<?>, V> Builder<K, V> builder() {
        return new Builder<>();
      }
    
      /**
       * A builder for immutable range maps. Overlapping ranges are prohibited.
       *
       * @since 14.0
       */
      @DoNotMock
      public static final class Builder<K extends Comparable<?>, V> {
        private final List<Entry<Range<K>, V>> entries;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

         */
        Waiter(boolean unused) {}
    
        Waiter() {
          // avoid volatile write, write is made visible by subsequent CAS on waiters field
          ATOMIC_HELPER.putThread(this, Thread.currentThread());
        }
    
        // non-volatile write to the next field. Should be made visible by subsequent CAS on waiters
        // field.
        void setNext(@CheckForNull Waiter next) {
          ATOMIC_HELPER.putNext(this, next);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
Back to top