Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for ideas (0.14 sec)

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

        Ordering<Integer> e = integers.compound(numbers);
    
        // This works with three levels too (IDEA falsely reports errors as noted
        // below. Both javac and eclipse handle these cases correctly.)
    
        Ordering<Number> f = numbers.compound(objects).compound(objects); // bad IDEA
        Ordering<Number> g = objects.compound(numbers).compound(objects);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        Ordering<Integer> e = integers.compound(numbers);
    
        // This works with three levels too (IDEA falsely reports errors as noted
        // below. Both javac and eclipse handle these cases correctly.)
    
        Ordering<Number> f = numbers.compound(objects).compound(objects); // bad IDEA
        Ordering<Number> g = objects.compound(numbers).compound(objects);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

      @CollectionSize.Require(ZERO)
      public void testRetainAll_nullCollectionReferenceEmptySubject() {
        try {
          collection.retainAll(null);
          // Returning successfully is not ideal, but tolerated.
        } catch (NullPointerException tolerated) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

            };
        try {
          Hashing.hmacMd5(badKey);
          fail();
        } catch (IllegalArgumentException expected) {
        } catch (NullPointerException toleratedOnAndroid) {
          // TODO(cpovirk): In an ideal world, we'd check here that we're running on Android.
        }
      }
    
      public void testEmptyInputs() throws Exception {
        String knownOutput = "8cbf764cbe2e4623d99a41354adfd390";
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multiset.java

     * "the same," <i>unless specified otherwise</i> by the implementation.
     *
     * <p><b>Warning:</b> as with normal {@link Set}s, it is almost always a bad idea to modify an
     * element (in a way that affects its {@link Object#equals} behavior) while it is contained in a
     * multiset. Undefined behavior and bugs will result.
     *
     * <h3>Implementations</h3>
     *
     * <ul>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/IntMath.java

        }
      }
    
      private static int log10Floor(int x) {
        /*
         * Based on Hacker's Delight Fig. 11-5, the two-table-lookup, branch-free implementation.
         *
         * The key idea is that based on the number of leading zeros (equivalently, floor(log2(x))), we
         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        ParameterizedType owner = (ParameterizedType) subtype.getOwnerType();
        assertEquals(Outer.class, owner.getRawType());
        // This returns a strange ? extends Sub2<Y> type, which isn't ideal.
        TypeToken<?> unused = new TypeToken<BaseWithTypeVar<List<?>>>() {}.getSubtype(Outer.Sub2.class);
      }
    
      public void testGetSubtype_subtypeSameAsDeclaringType() throws Exception {
        class Bar<T> {}
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          return;
        }
    
        Set<Entry<K, V>> entrySet = map.entrySet();
        if (supportsRemove) {
          try {
            entrySet.retainAll(null);
            // Returning successfully is not ideal, but tolerated.
          } catch (NullPointerException tolerated) {
          }
        } else {
          try {
            entrySet.retainAll(null);
            // We have to tolerate a successful return (Sun bug 4802647)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  9. guava/src/com/google/common/base/Stopwatch.java

       *
       * <p><b>Note:</b> the overhead of measurement can be more than a microsecond, so it is generally
       * not useful to specify {@link TimeUnit#NANOSECONDS} precision here.
       *
       * <p>It is generally not a good idea to use an ambiguous, unitless {@code long} to represent
       * elapsed time. Therefore, we recommend using {@link #elapsed()} instead, which returns a
       * strongly-typed {@code Duration} instance.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Optional.java

       * instead. For a default value of {@code null}, use {@link #orNull}.
       *
       * <p>Note about generics: The signature {@code public T or(T defaultValue)} is overly
       * restrictive. However, the ideal signature, {@code public <S super T> S or(S)}, is not legal
       * Java. As a result, some sensible operations involving subtypes are compile errors:
       *
       * <pre>{@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)
Back to top