Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 391 for Rust (0.14 sec)

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

       *     Queue<Integer>} but not a {@code Queue<Object>}).
       * @since 8.0
       */
      public static final class Builder<B> {
        /*
         * TODO(kevinb): when the dust settles, see if we still need this or can
         * just default to DEFAULT_CAPACITY.
         */
        private static final int UNSET_EXPECTED_SIZE = -1;
    
        private final Comparator<B> comparator;
        private int expectedSize = UNSET_EXPECTED_SIZE;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

    import java.util.logging.Level;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A helper which does some thread-safe operations for aggregate futures, which must be implemented
     * differently in GWT. Namely:
     *
     * <ul>
     *   <li>Lazily initializes a set of seen exceptions
     *   <li>Decrements a counter atomically
     * </ul>
     */
    @GwtCompatible(emulated = true)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

       * using a {@code LinkedHashSet} instead, at the cost of increased memory footprint, to get
       * deterministic iteration behavior.
       *
       * <p>This method is just a small convenience, either for {@code newHashSet(}{@link Arrays#asList
       * asList}{@code (...))}, or for creating an empty set then calling {@link Collections#addAll}.
    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)
  4. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            return 0;
          }
          if (lhs == null) {
            // lhs (null) comes just before justAfterNull.
            // If rhs is b, lhs comes first.
            if (rhs.equals(justAfterNull)) {
              return -1;
            }
            return justAfterNull.compareTo(rhs);
          }
          if (rhs == null) {
            // rhs (null) comes just before justAfterNull.
            // If lhs is b, rhs comes first.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

        ImmutableCollection<? extends Future<?>> localFutures = futures;
        if (localFutures != null) {
          return "futures=" + localFutures;
        }
        return super.pendingToString();
      }
    
      /**
       * Must be called at the end of each subclass's constructor. This method performs the "real"
       * initialization; we can't put this in the constructor because, in the case where futures are
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ContiguousSet.java

     * ContiguousSet.create(Range.closed(5, 42), DiscreteDomain.integers())
     * }</pre>
     *
     * <p>Note that because bounded ranges over {@code int} and {@code long} values are so common, this
     * particular example can be written as just:
     *
     * <pre>{@code
     * ContiguousSet.closed(5, 42)
     * }</pre>
     *
     * <p><b>Warning:</b> Be extremely careful what you do with conceptually large instances (such as
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInts.java

     * {@code String} and a {@code String} to an {@code int} that treat the {@code int} as an unsigned
     * number.
     *
     * <p>Users of these utilities must be <i>extremely careful</i> not to mix up signed and unsigned
     * {@code int} values. When possible, it is recommended that the {@link UnsignedInteger} wrapper
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteStreams.java

       *       can always page it to disk "for free". However, on systems where killing processes
       *       happens all the time in normal conditions (i.e., android) the OS must make a tradeoff
       *       between paging memory and killing other processes - so allocating a gigantic buffer and
       *       then sequentially accessing it could result in other processes dying. This is solvable
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

                            ModelProblem.Version.BASE,
                            "Invalid packaging for parent POM " + ModelProblemUtils.toSourceHint(parentModel)
                                    + ", must be \"pom\" but is \"" + parentModel.getPackaging() + "\"",
                            parentModel.getLocation("packaging"));
                }
            }
    
            return parentData;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * read operations anyway:
         *
         * - All (unsynchronized) read operations must first read the "count" field, and should not
         * look at table entries if it is 0.
         *
         * - All (synchronized) write operations should write to the "count" field after structurally
         * changing any bin. The operations must not take any action that could even momentarily
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
Back to top