Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 62 for factories (0.11 sec)

  1. android/guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

          int j = i & ARRAY_MASK;
          tmp += LongMath.mod(nonnegative[j], positive[j]);
        }
        return tmp;
      }
    
      @Benchmark
      int factorial(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += LongMath.factorial(factorialArguments[j]);
        }
        return tmp;
      }
    
      @Benchmark
      int binomial(int reps) {
        int tmp = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/Platform.java

    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    
    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
     * @author Chris Povirk
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 23 12:13:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Locale;
    
    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
     * <p>This class is emulated in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 04 01:39:13 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    @ElementTypesAreNonnullByDefault
    final class Platform {
      static boolean isInstanceOfThrowableClass(Throwable t, Class<? extends Throwable> expectedClass) {
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 08 20:30:27 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeoutException;
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    @GwtCompatible(emulated = true)
    final class TestPlatform {
      static void verifyGetOnPendingFuture(Future<?> future) {
        checkNotNull(future);
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Platform.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.lang.Thread.currentThread;
    
    import com.google.common.annotations.GwtCompatible;
    import javax.annotation.CheckForNull;
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      static boolean isInstanceOfThrowableClass(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 10 12:27:25 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Platform.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.lang.Thread.currentThread;
    
    import com.google.common.annotations.GwtCompatible;
    import javax.annotation.CheckForNull;
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      static boolean isInstanceOfThrowableClass(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 10 12:27:25 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/Platform.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
     * @author Chris Povirk
     */
    final class Platform {
      /** Serializes and deserializes the specified object (a no-op under GWT). */
      @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/IntMathTest.java

        }
      }
    
      // Depends on the correctness of BigIntegerMath.factorial.
      public void testFactorial() {
        for (int n = 0; n <= 50; n++) {
          BigInteger expectedBig = BigIntegerMath.factorial(n);
          int expectedInt = fitsInInt(expectedBig) ? expectedBig.intValue() : Integer.MAX_VALUE;
          assertEquals(expectedInt, IntMath.factorial(n));
        }
      }
    
      public void testFactorialNegative() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/IntMathTest.java

        }
      }
    
      // Depends on the correctness of BigIntegerMath.factorial.
      public void testFactorial() {
        for (int n = 0; n <= 50; n++) {
          BigInteger expectedBig = BigIntegerMath.factorial(n);
          int expectedInt = fitsInInt(expectedBig) ? expectedBig.intValue() : Integer.MAX_VALUE;
          assertEquals(expectedInt, IntMath.factorial(n));
        }
      }
    
      public void testFactorialNegative() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top