Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for probes (0.15 sec)

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

       *
       * <pre>{@code
       * public static final ImmutableSortedSet<Number> LUCKY_NUMBERS =
       *     new ImmutableSortedSet.Builder<Number>(ODDS_FIRST_COMPARATOR)
       *         .addAll(SINGLE_DIGIT_PRIMES)
       *         .add(42)
       *         .build();
       * }</pre>
       *
       * <p>Builder instances can be reused; it is safe to call {@link #build} multiple times to build
    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)
  2. android/guava/src/com/google/common/math/LongMath.java

       */
      @GwtIncompatible // TODO
      public static boolean isPrime(long n) {
        if (n < 2) {
          checkNonNegative("n", n);
          return false;
        }
        if (n < 66) {
          // Encode all primes less than 66 into mask without 0 and 1.
          long mask =
              (1L << (2 - 2))
                  | (1L << (3 - 2))
                  | (1L << (5 - 2))
                  | (1L << (7 - 2))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/NullnessCasts.java

       * nullness analysis might not understand that the field has been populated. To avoid that problem
       * without having to add {@code @SuppressWarnings}, the code can call this method.
       *
       * <p>Why <i>not</i> just add {@code SuppressWarnings}? The problem is that this method is
       * typically useful for {@code return} statements. That leaves the code with two options: Either
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 17 15:44:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultisetGwtSerializationDependencies.java

     *
     * <p>For {@code ImmutableMultiset} in particular, I ran into a problem with the {@code
     * GwtSerializationDependencies} approach: When autogenerating a serializer for the new class, GWT
     * tries to refer to our dummy serializer for the superclass,
     * ImmutableMultiset_CustomFieldSerializer. But that type has no methods (since it's never actually
     * used). We could probably fix the problem by adding dummy methods to that class, but that is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

        int available = in.available();
        return available == 0 ? 0 : in.skip(Math.min(available, n));
      }
    
      /**
       * Process the bytes of the given input stream using the given processor.
       *
       * @param input the input stream to process
       * @param processor the object to which to pass the bytes of the stream
       * @return the result of the byte processor
       * @throws IOException if an I/O error occurs
    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)
  6. android/guava/src/com/google/common/io/ByteSource.java

        }
    
        @Override
        public Optional<Long> sizeIfKnown() {
          if (!(sources instanceof Collection)) {
            // Infinite Iterables can cause problems here. Of course, it's true that most of the other
            // methods on this class also have potential problems with infinite  Iterables. But unlike
            // those, this method can cause issues even if the user is dealing with a (finite) slice()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

       * call cancel() and be unable to cancel the delegate.
       * There are a number of ways to solve this, none of which are very pretty, and it is currently
       * believed to be a purely theoretical problem (since the other actions should supply sufficient
       * write-barriers).
       */
    
      @CheckForNull @LazyInit private ListenableFuture<V> delegateRef;
      @CheckForNull @LazyInit private ScheduledFuture<?> timer;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/MoreFilesTest.java

        assertThat(Files.getLastModifiedTime(temp).toMillis()).isNotEqualTo(0);
      }
    
      public void testCreateParentDirectories_root() throws IOException {
        // We use a fake filesystem to sidestep flaky problems with Windows (b/136041958).
        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
          Path root = fs.getRootDirectories().iterator().next();
          assertNull(root.getParent());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ContiguousSet.java

     * on such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
     * Collections#frequency}) can cause major performance problems.
     *
     * @author Gregory Kick
     * @since 10.0
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("rawtypes") // allow ungenerified Comparable types
    @ElementTypesAreNonnullByDefault
    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)
  10. android/guava/src/com/google/common/cache/Striped64.java

      /**
       * Handles cases of updates involving initialization, resizing, creating new Cells, and/or
       * contention. See above for explanation. This method suffers the usual non-modularity problems of
       * optimistic retry code, relying on rechecked sets of reads.
       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top