Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 152 for integration (0.39 sec)

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

            } else {
              assertThat(numSuccessfulSetCalls.get()).isEqualTo(1);
            }
          } else {
            assertThat(numSuccessfulSetCalls.get()).isEqualTo(1);
          }
          // reset for next iteration
          numSuccessfulSetCalls.set(0);
          finalResults.clear();
        }
        executor.shutdown();
      }
    
      // setFuture and cancel() interact in more complicated ways than the other setters.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/Striped64.java

        } catch (Exception e) {
          throw new Error(e);
        }
      }
    
      /**
       * Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call
       * to Unsafe.getUnsafe when integrating into a jdk.
       *
       * @return a sun.misc.Unsafe
       */
      @SuppressWarnings("removal") // b/318391980
      private static sun.misc.Unsafe getUnsafe() {
        try {
          return sun.misc.Unsafe.getUnsafe();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractBiMap.java

      }
    
      @LazyInit @CheckForNull private transient Set<V> valueSet;
    
      @Override
      public Set<V> values() {
        /*
         * We can almost reuse the inverse's keySet, except we have to fix the
         * iteration order so that it is consistent with the forward map.
         */
        Set<V> result = valueSet;
        return (result == null) ? valueSet = new ValueSet() : result;
      }
    
      @WeakOuter
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 14.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       conformance.
     *   <li>The test classes currently do not declare inclusion in any particular package to simplify
     *       things for people integrating them in TCK test suites.
     *   <li>As a convenience, the {@code main} of this class (JSR166TestCase) runs all JSR166 unit
     *       tests.
     * </ul>
     */
    abstract class JSR166TestCase extends TestCase {
    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)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertIntact(q);
        q.remove(9);
        q.remove(11);
        q.remove(10);
        // Now we're in the critical state: [1, 15, 13, 8, 14]
        // Removing 8 while iterating caused duplicates in iteration result.
        List<Integer> result = Lists.newArrayListWithCapacity(initial.size());
        for (Iterator<Integer> iter = q.iterator(); iter.hasNext(); ) {
          Integer value = iter.next();
          result.add(value);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

       * loading, or expired. Unlike {@link Segment#getLiveValue} this method does not attempt to clean
       * up stale entries. As such it should only be called outside a segment context, such as during
       * iteration.
       */
      @CheckForNull
      V getLiveValue(ReferenceEntry<K, V> entry, long now) {
        if (entry.getKey() == null) {
          return null;
        }
        V value = entry.getValueReference().get();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMultimap.java

     * need for a distinct {@code ImmutableBiMultimap} type.
     *
     * <p><a id="iteration"></a>
     *
     * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all
     * current implementations, the iteration order always keeps multiple entries with the same key
     * together. Any creation method that would customarily respect insertion order (such as {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Set;
    
    /**
     * Very simple powerSet iteration benchmark.
     *
     * @author Kevin Bourrillion
     */
    public class PowerSetBenchmark {
      @Param({"2", "4", "8", "16"})
      int elements;
    
      Set<Set<Integer>> powerSet;
    
      @BeforeExperiment
      void setUp() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMultimap.java

     * need for a distinct {@code ImmutableBiMultimap} type.
     *
     * <p><a id="iteration"></a>
     *
     * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all
     * current implementations, the iteration order always keeps multiple entries with the same key
     * together. Any creation method that would customarily respect insertion order (such as {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java

    import com.google.caliper.Param;
    import com.google.common.collect.BenchmarkHelpers.SetImpl;
    import com.google.common.collect.CollectionBenchmarkSampleData.Element;
    import java.util.Set;
    
    /**
     * Test iteration speed at various size for {@link Set} instances.
     *
     * @author Christopher Swenson
     */
    public class SetIterationBenchmark {
      @Param({
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.9K bytes
    - Viewed (0)
Back to top