Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for Fine (0.55 sec)

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

      public TestSuite createTestSuite() {
        checkCanCreate();
    
        logger.fine(" Testing: " + name);
        logger.fine("Features: " + formatFeatureSet(features));
    
        FeatureUtil.addImpliedFeatures(features);
    
        logger.fine("Expanded: " + formatFeatureSet(features));
    
        @SuppressWarnings("rawtypes") // class literals
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeFine1() {
        Optional<Number> optionalInt = Optional.of((Number) 1);
        Number value = optionalInt.or(0.5); // fine
      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeFine2() {
        FluentIterable<? extends Number> numbers = getSomeNumbers();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

              if (newValue == 0) {
                // Just CASed to 0; remove the entry to clean up the map. If the removal fails,
                // another thread has already replaced it with a new counter, which is fine.
                countMap.remove(element, existingCounter);
              }
              return oldValue;
            }
          } else {
            return 0;
          }
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeFine1() {
        Optional<Number> optionalInt = Optional.of((Number) 1);
        Number value = optionalInt.or(0.5); // fine
      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeFine2() {
        FluentIterable<? extends Number> numbers = getSomeNumbers();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

        Set<Feature<?>> features = Helpers.copyToSet(getFeatures());
        @SuppressWarnings("rawtypes") // class literals
        List<Class<? extends AbstractTester>> testers = getTesters();
    
        logger.fine(" Testing: " + name);
    
        // Split out all the specified sizes.
        Set<Feature<?>> sizesToTest = Helpers.<Feature<?>>copyToSet(CollectionSize.values());
        sizesToTest.retainAll(features);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      public TestSuite createTestSuite() {
        checkCanCreate();
    
        logger.fine(" Testing: " + name);
        logger.fine("Features: " + formatFeatureSet(features));
    
        FeatureUtil.addImpliedFeatures(features);
    
        logger.fine("Expanded: " + formatFeatureSet(features));
    
        @SuppressWarnings("rawtypes") // class literals
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

              if (newValue == 0) {
                // Just CASed to 0; remove the entry to clean up the map. If the removal fails,
                // another thread has already replaced it with a new counter, which is fine.
                countMap.remove(element, existingCounter);
              }
              return oldValue;
            }
          } else {
            return 0;
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

        Set<Feature<?>> features = Helpers.copyToSet(getFeatures());
        @SuppressWarnings("rawtypes") // class literals
        List<Class<? extends AbstractTester>> testers = getTesters();
    
        logger.fine(" Testing: " + name);
    
        // Split out all the specified sizes.
        Set<Feature<?>> sizesToTest = Helpers.<Feature<?>>copyToSet(CollectionSize.values());
        sizesToTest.retainAll(features);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Optional.java

       *
       * <pre>{@code
       * Optional<Number> optionalInt = (Optional) getSomeOptionalInt();
       * Number value = optionalInt.or(0.5); // fine
       *
       * FluentIterable<? extends Number> numbers = getSomeNumbers();
       * Optional<Number> first = (Optional) numbers.first();
       * Number value = first.or(0.5); // fine
       * }</pre>
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is similar to Java 8's {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

     * @author Robert Konigsberg
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class UnmodifiableCollectionTests {
    
      public static void assertMapEntryIsUnmodifiable(Entry<?, ?> entry) {
        try {
          // fine because the call is going to fail without modifying the entry
          @SuppressWarnings("unchecked")
          Entry<?, @Nullable Object> nullableValueEntry = (Entry<?, @Nullable Object>) entry;
          nullableValueEntry.setValue(null);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
Back to top