Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 75 for Op (0.32 sec)

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

          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testReplace_absentNullKeyUnsupported() {
        try {
          getMap().replace(null, v3());
        } catch (NullPointerException tolerated) {
          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RangeSet.java

       * the range set that are {@linkplain Range#isConnected(Range) connected} with it. Moreover, if
       * {@code range} is empty, this is a no-op.
       *
       * @throws UnsupportedOperationException if this range set does not support the {@code add}
       *     operation
       */
      void add(Range<C> range);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java

          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testReplace_absentNullKeyUnsupported() {
        try {
          getMap().replace(null, v3());
        } catch (NullPointerException tolerated) {
          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       */
      private void collectValueFromNonCancelledFuture(int index, Future<? extends InputT> future) {
        try {
          // We get the result, even if collectOneValue is a no-op, so that we can fail fast.
          collectOneValue(index, getDone(future));
        } catch (ExecutionException e) {
          handleException(e.getCause());
        } catch (Throwable t) { // sneaky checked exception
    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)
  5. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

          };
    
      private static final UncaughtExceptionHandler UNCAUGHT_EXCEPTION_HANDLER =
          new UncaughtExceptionHandler() {
            @Override
            public void uncaughtException(Thread t, Throwable e) {
              // No-op
            }
          };
    
      private ThreadFactoryBuilder builder;
      private volatile boolean completed = false;
    
      @Override
      public void setUp() {
        builder = new ThreadFactoryBuilder();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

          ImmutableLongArray.Builder builder = ImmutableLongArray.builder(RANDOM.nextInt(20));
          AtomicLong counter = new AtomicLong(0);
          while (counter.get() < 1000) {
            BuilderOp op = BuilderOp.randomOp();
            op.doIt(builder, counter);
          }
          ImmutableLongArray iia = builder.build();
          for (int j = 0; j < iia.length(); j++) {
            assertThat(iia.get(j)).isEqualTo((long) j);
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 19K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LongAdderTest.java

    import static com.google.common.truth.Truth.assertThat;
    
    import junit.framework.TestCase;
    
    /** Unit tests for {@link LongAdder}. */
    public class LongAdderTest extends TestCase {
    
      /**
       * No-op null-pointer test for {@link LongAdder} to override the {@link PackageSanityTests}
       * version, which checks package-private methods that we don't want to have to annotate as {@code
       * Nullable} because we don't want diffs from jsr166e.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 09 04:11:29 GMT 2019
    - 1.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java

    /**
     * A generic JUnit test which tests multiset-specific serialization. Can't be invoked directly;
     * please see {@link MultisetTestSuiteBuilder}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible // but no-op
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetSerializationTester<E> extends AbstractMultisetTester<E> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Nov 15 21:38:09 GMT 2022
    - 1.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

          ImmutableDoubleArray.Builder builder = ImmutableDoubleArray.builder(RANDOM.nextInt(20));
          AtomicInteger counter = new AtomicInteger(0);
          while (counter.get() < 1000) {
            BuilderOp op = BuilderOp.randomOp();
            op.doIt(builder, counter);
          }
          ImmutableDoubleArray iia = builder.build();
          for (int j = 0; j < iia.length(); j++) {
            assertThat(iia.get(j)).isEqualTo((double) j);
          }
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

        // CharMatcher.precomputed() produces CharMatchers that are maybe a little
        // faster (and that's debatable), but definitely more memory-hungry. We're
        // choosing to turn .precomputed() into a no-op in GWT, because it doesn't
        // seem to be a worthwhile tradeoff in a browser.
        return matcher;
      }
    
      static String formatCompact4Digits(double value) {
        return "" + ((Number) (Object) value).toPrecision(4);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 17:58:45 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top