Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for Rails (0.17 sec)

  1. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      /**
       * Simulate some of the races that can happen on add. We can't easily simulate the race that
       * happens when an {@link AtomicInteger#compareAndSet} fails, but we can simulate the case where
       * the putIfAbsent returns a non-null value, and the case where the replace() of an observed zero
       * fails.
       */
      public void testAdd_withFailures() {
        AtomicInteger existing = new AtomicInteger(12);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.features.CollectionFeature.ALLOWS_NULL_VALUES;
    import static com.google.common.collect.testing.features.CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION;
    import static com.google.common.collect.testing.features.CollectionFeature.RESTRICTS_ELEMENTS;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ADD;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

            .named("ArrayList")
            .withFeatures(
                ListFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
                CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                CollectionSize.ANY)
            .suppressing(suppressForArrayList())
            .createTestSuite();
      }
    
      public Test testsForLinkedList() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 12.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FutureCallback.java

      /** Invoked with the result of the {@code Future} computation when it is successful. */
      void onSuccess(@ParametricNullness V result);
    
      /**
       * Invoked when a {@code Future} computation fails or is canceled.
       *
       * <p>If the future's {@link Future#get() get} method throws an {@link ExecutionException}, then
       * the cause is passed to this method. Any other thrown object is passed unaltered.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 05 22:27:35 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java

          derivedFeatures.add(CollectionFeature.REJECTS_DUPLICATES_AT_CREATION);
        }
        if (mapFeatures.contains(MapFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION)) {
          derivedFeatures.add(CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION);
        }
        // add the intersection of CollectionFeature.values() and mapFeatures
        for (CollectionFeature feature : CollectionFeature.values()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          this.returnTypeToTest = returnType;
          return this;
        }
    
        /**
         * Tests null checks against the instance methods of the return values, if any.
         *
         * <p>Test fails if default value cannot be determined for a constructor or factory method
         * parameter, or if the constructor or factory method throws exception.
         *
         * @return this tester
         */
        @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/HashMultimapTest.java

                    MapFeature.ALLOWS_NULL_KEYS,
                    MapFeature.ALLOWS_NULL_VALUES,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES,
                    MapFeature.GENERAL_PURPOSE,
                    MapFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
                    CollectionFeature.SERIALIZABLE,
                    CollectionSize.ANY)
                .createTestSuite());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

                .named("LinkedHashMultiset")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                    CollectionFeature.ALLOWS_NULL_VALUES,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.GENERAL_PURPOSE,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

          if (oldValue == 0L || atomic.compareAndSet(oldValue, 0L)) {
            // only remove after setting to zero, to avoid concurrent updates
            map.remove(key, atomic);
            // succeed even if the remove fails, since the value was already adjusted
            return oldValue;
          }
        }
      }
    
      /**
       * If {@code (key, value)} is currently in the map, this method removes it and returns true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

      private static final ImmutableMultimap<Feature<?>, Feature<?>> GET_FEATURE_MAP =
          ImmutableMultimap.<Feature<?>, Feature<?>>builder()
              .put(
                  MapFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                  CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION)
              .put(MapFeature.GENERAL_PURPOSE, ListFeature.SUPPORTS_ADD_WITH_INDEX)
              .put(MapFeature.GENERAL_PURPOSE, ListFeature.SUPPORTS_REMOVE_WITH_INDEX)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top