Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Max (0.11 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSet.java

      static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.7;
    
      // If the set has this many elements, it will "max out" the table size
      private static final int CUTOFF = (int) (MAX_TABLE_SIZE * DESIRED_LOAD_FACTOR);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. 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)
  3. android/guava/src/com/google/common/collect/Multisets.java

          @Override
          public boolean isEmpty() {
            return multiset1.isEmpty() && multiset2.isEmpty();
          }
    
          @Override
          public int count(@CheckForNull Object element) {
            return Math.max(multiset1.count(element), multiset2.count(element));
          }
    
          @Override
          Set<E> createElementSet() {
            return Sets.union(multiset1.elementSet(), multiset2.elementSet());
          }
    
    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)
  4. android/guava/src/com/google/common/collect/Comparators.java

       * @param b second value to compare.
       * @throws ClassCastException if the parameters are not <i>mutually comparable</i>.
       * @since 30.0
       */
      public static <T extends Comparable<? super T>> T max(T a, T b) {
        return (a.compareTo(b) >= 0) ? a : b;
      }
    
      /**
       * Returns the maximum of the two values, according to the given comparator. If the values compare
       * as equal, the first is returned.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MoreCollectors.java

          if (element == null) {
            this.element = o;
          } else if (extras.isEmpty()) {
            // Replace immutable empty list with mutable list.
            extras = new ArrayList<>(MAX_EXTRAS);
            extras.add(o);
          } else if (extras.size() < MAX_EXTRAS) {
            extras.add(o);
          } else {
            throw multiples(true);
          }
        }
    
        ToOptionalState combine(ToOptionalState other) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Ordering.java

       *     ordering.
       */
      @ParametricNullness
      public <E extends T> E max(
          @ParametricNullness E a, @ParametricNullness E b, @ParametricNullness E c, E... rest) {
        E maxSoFar = max(max(a, b), c);
    
        for (E r : rest) {
          maxSoFar = max(maxSoFar, r);
        }
    
        return maxSoFar;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                configProps.put(FILE_TRANSPORTER_PRIORITY_KEY, RESOLVER_MAX_PRIORITY);
                configProps.put(APACHE_HTTP_TRANSPORTER_PRIORITY_KEY, RESOLVER_MAX_PRIORITY);
            } else if (MAVEN_RESOLVER_TRANSPORT_WAGON.equals(transport)) {
                // Make sure (whatever extra priority is set) that wagon is selected
                configProps.put(WAGON_TRANSPORTER_PRIORITY_KEY, RESOLVER_MAX_PRIORITY);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultiset.java

              contents.ensureCapacity(Math.max(contents.size(), backingMap.size()));
              for (int i = backingMap.firstIndex(); i >= 0; i = backingMap.nextIndex(i)) {
                addCopies(backingMap.getKey(i), backingMap.getValue(i));
              }
            } else {
              Set<? extends Entry<? extends E>> entries = multiset.entrySet();
              contents.ensureCapacity(Math.max(contents.size(), entries.size())); // might overlap
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code Last-Event-ID} header field name. */
      public static final String LAST_EVENT_ID = "Last-Event-ID";
      /** The HTTP {@code Max-Forwards} header field name. */
      public static final String MAX_FORWARDS = "Max-Forwards";
      /** The HTTP {@code Origin} header field name. */
      public static final String ORIGIN = "Origin";
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                // the defined parallism, while making sure the pool will not
                // be exhausted
                //
                return new ThreadPoolExecutor(
                        parallelism, Integer.MAX_VALUE, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>()) {
                    final AtomicInteger parked = new AtomicInteger();
    
                    @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
Back to top