Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for adapter (0.29 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            try {
              latch.await();
            } catch (InterruptedException quittingTime) {
            }
            return TEST_STRING;
          }
        };
      }
    
      public Runnable awaiter(final CountDownLatch latch) {
        return new CheckedRunnable() {
          public void realRun() throws InterruptedException {
            await(latch);
          }
        };
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/MavenModelMerger.java

    import org.apache.maven.api.model.Site;
    import org.apache.maven.model.v4.MavenMerger;
    
    /**
     * The domain-specific model merger for the Maven POM, overriding generic code from parent class when necessary with
     * more adapted algorithms.
     *
     */
    public class MavenModelMerger extends MavenMerger {
    
        /**
         * The hint key for the child path adjustment used during inheritance for URL calculations.
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/BigIntegerMath.java

          default:
            throw new AssertionError();
        }
      }
    
      @GwtIncompatible // TODO
      private static BigInteger sqrtFloor(BigInteger x) {
        /*
         * Adapted from Hacker's Delight, Figure 11-1.
         *
         * Using DoubleUtils.bigToDouble, getting a double approximation of x is extremely fast, and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AtomicDouble.java

     * domain, as explained at
     * http://creativecommons.org/publicdomain/zero/1.0/
     */
    
    /*
     * Source:
     * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/extra/AtomicDouble.java?revision=1.13
     * (Modified to adapt to guava coding conventions and
     * to use AtomicLong instead of sun.misc.Unsafe)
     */
    
    package com.google.common.util.concurrent;
    
    import static java.lang.Double.doubleToRawLongBits;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 28 21:00:54 GMT 2022
    - 7.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Converter.java

     * guarantee that as long as we also require the input type to be non-null[*] (which is a
     * requirement that existing callers already fulfill).
     *
     * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that
     * that is how the signature looked even prior to this comment! So naturally any change can break
     * existing users, but it can't *fix* existing users because any users who needed
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (1)
  6. guava/src/com/google/common/collect/Iterators.java

          @SuppressWarnings("unchecked")
          T t = (T) valueOrSentinel;
          valueOrSentinel = SENTINEL;
          return t;
        }
      }
    
      /**
       * Adapts an {@code Enumeration} to the {@code Iterator} interface.
       *
       * <p>This method has no equivalent in {@link Iterables} because viewing an {@code Enumeration} as
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *   <li>Return a {@code ClosingFuture}. To turn a {@link ListenableFuture} into a {@code
       *       ClosingFuture} call {@link #from(ListenableFuture)}.
       *   <li>In case this step doesn't create new closeables, you can adapt an API that returns a
       *       {@link ListenableFuture} to return a {@code ClosingFuture} by wrapping it with a call to
       *       {@link #withoutCloser(AsyncFunction)}
       * </ul>
       *
       * <p>Example usage:
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/ArrayIterator.java

    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * 配列を{@link Iterator}にするAdaptorです。
     * <p>
     * 次のように使います.
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.collection.ArrayIterator.*;
     *
     * String[] array = ...;
     * for (String element : iterable(array)) {
     *     ...
     * }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

      private static char randomCharFrom(String s, Random rand) {
        return s.charAt(rand.nextInt(s.length()));
      }
    
      /**
       * Provides samples on a random distribution derived from the web.
       *
       * <p>Adapted from data provided by Mark Davis.
       *
       * @author Christopher Swenson
       */
      static class CharSamples {
    
        static {
          populateProb1();
          populateProb2();
          populateChars1();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

     * http://creativecommons.org/publicdomain/zero/1.0/
     */
    
    /*
     * Source:
     * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/extra/AtomicDoubleArray.java?revision=1.5
     * (Modified to adapt to guava coding conventions and
     * to use AtomicLongArray instead of sun.misc.Unsafe)
     */
    
    package com.google.common.util.concurrent;
    
    import static java.lang.Double.doubleToRawLongBits;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 8K bytes
    - Viewed (0)
Back to top