Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 173 for native (0.14 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

          fail("addAll(n, null) should throw");
        } catch (NullPointerException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAllAtIndex_negative() {
        try {
          getList().addAll(-1, MinimalCollection.of(e3()));
          fail("addAll(-1, e) should throw");
        } catch (IndexOutOfBoundsException expected) {
        }
        expectUnchanged();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  2. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * {@code ExecutorService} imposes a small locking overhead on each task submission in order to
       * implement shutdown and termination behavior.
       *
       * <p>Because of the nature of single-thread execution, the methods {@code scheduleAtFixedRate}
       * and {@code scheduleWithFixedDelay} are not supported by this class and will throw an
       * UnsupportedOperationException.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterables.java

       * @throws IllegalArgumentException if {@code limitSize} is negative
       * @since 3.0
       */
      public static <T extends @Nullable Object> Iterable<T> limit(
          final Iterable<T> iterable, final int limitSize) {
        checkNotNull(iterable);
        checkArgument(limitSize >= 0, "limit is negative");
        return new FluentIterable<T>() {
          @Override
          public Iterator<T> iterator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

      public void testOptimalNumOfHashFunctionsRounding() {
        assertEquals(7, BloomFilter.optimalNumOfHashFunctions(319, 3072));
      }
    
      /** Tests that we always get a non-negative optimal size. */
      public void testOptimalSize() {
        for (int n = 1; n < 1000; n++) {
          for (double fpp = Double.MIN_VALUE; fpp < 1.0; fpp += 0.001) {
            assertTrue(BloomFilter.optimalNumOfBits(n, fpp) >= 0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMultiset.java

         *     case no change will be made.
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code element} is null
         * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation
         *     would result in more than {@link Integer#MAX_VALUE} occurrences of the element
         */
        @CanIgnoreReturnValue
        public Builder<E> addCopies(E element, int occurrences) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests {@link MapTestSuiteBuilder} by using it against maps that have various negative behaviors.
     *
     * @author George van den Driessche
     */
    public final class MapTestSuiteBuilderTests extends TestCase {
      private MapTestSuiteBuilderTests() {}
    
      public static Test suite() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

       * @return a new, empty {@code CompactLinkedHashMap} with enough capacity to hold {@code
       *     expectedSize} elements without resizing
       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          CompactLinkedHashMap<K, V> createWithExpectedSize(int expectedSize) {
        return new CompactLinkedHashMap<>(expectedSize);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests {@link MapTestSuiteBuilder} by using it against maps that have various negative behaviors.
     *
     * @author George van den Driessche
     */
    public final class MapTestSuiteBuilderTests extends TestCase {
      private MapTestSuiteBuilderTests() {}
    
      public static Test suite() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       *
       * <p>It is important to note that the primary purpose of the proxy object is to return control to
       * the caller when the timeout elapses; aborting the target method call is of secondary concern.
       * The particular nature and strength of the guarantees made by the proxy is
       * implementation-dependent. However, it is important that each of the methods on the target
       * object behaves appropriately when its thread is interrupted.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

    import java.util.Arrays;
    
    /** Unit test for {@link AtomicDoubleArray}. */
    public class AtomicDoubleArrayTest extends JSR166TestCase {
    
      private static final double[] VALUES = {
        Double.NEGATIVE_INFINITY,
        -Double.MAX_VALUE,
        (double) Long.MIN_VALUE,
        (double) Integer.MIN_VALUE,
        -Math.PI,
        -1.0,
        -Double.MIN_VALUE,
        -0.0,
        +0.0,
        Double.MIN_VALUE,
        1.0,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
Back to top