Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for obvious (0.29 sec)

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

        ConcurrentHashMultiset<String> multiset = ConcurrentHashMultiset.create(map);
    
        String s1 = new String("a");
        String s2 = new String("a");
        assertEquals(s1, s2); // Stating the obvious.
        assertTrue(s1 != s2); // Stating the obvious.
    
        multiset.add(s1);
        assertTrue(multiset.contains(s1));
        assertFalse(multiset.contains(s2));
        assertEquals(1, multiset.count(s1));
        assertEquals(0, multiset.count(s2));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/IntMathTest.java

          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // java.math.BigInteger
      public void testMean() {
        // Odd-sized ranges have an obvious mean
        assertMean(2, 1, 3);
    
        assertMean(-2, -3, -1);
        assertMean(0, -1, 1);
        assertMean(1, -1, 3);
        assertMean((1 << 30) - 1, -1, Integer.MAX_VALUE);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        ConcurrentHashMultiset<String> multiset = ConcurrentHashMultiset.create(map);
    
        String s1 = new String("a");
        String s2 = new String("a");
        assertEquals(s1, s2); // Stating the obvious.
        assertTrue(s1 != s2); // Stating the obvious.
    
        multiset.add(s1);
        assertTrue(multiset.contains(s1));
        assertFalse(multiset.contains(s2));
        assertEquals(1, multiset.count(s1));
        assertEquals(0, multiset.count(s2));
    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)
  4. android/guava-tests/test/com/google/common/math/LongMathTest.java

        assertTrue(sqrtMaxLong <= LongMath.FLOOR_SQRT_MAX_LONG);
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // java.math.BigInteger
      public void testMean() {
        // Odd-sized ranges have an obvious mean
        assertMean(2, 1, 3);
    
        assertMean(-2, -3, -1);
        assertMean(0, -1, 1);
        assertMean(1, -1, 3);
        assertMean((1L << 62) - 1, -1, Long.MAX_VALUE);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Ascii.java

          if (c1 == c2) {
            continue;
          }
          int alphaIndex = getAlphaIndex(c1);
          // This was also benchmarked using '&' to avoid branching (but always evaluate the rhs),
          // however this showed no obvious improvement.
          if (alphaIndex < 26 && alphaIndex == getAlphaIndex(c2)) {
            continue;
          }
          return false;
        }
        return true;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/IntMathTest.java

          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // java.math.BigInteger
      public void testMean() {
        // Odd-sized ranges have an obvious mean
        assertMean(2, 1, 3);
    
        assertMean(-2, -3, -1);
        assertMean(0, -1, 1);
        assertMean(1, -1, 3);
        assertMean((1 << 30) - 1, -1, Integer.MAX_VALUE);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  7. android/pom.xml

            <!--
                Some tests need reflective access to the internals of these packages. It is only the
                tests themselves and not the code being tested that needs that access, though there's no
                obvious way to ensure that.
    
                We could consider arranging things so that only the tests we know need this would get
                the add-opens. Right now that doesn't seem worth the effort, though.
            -->
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Ascii.java

          if (c1 == c2) {
            continue;
          }
          int alphaIndex = getAlphaIndex(c1);
          // This was also benchmarked using '&' to avoid branching (but always evaluate the rhs),
          // however this showed no obvious improvement.
          if (alphaIndex < 26 && alphaIndex == getAlphaIndex(c2)) {
            continue;
          }
          return false;
        }
        return true;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/LongMathTest.java

        assertTrue(sqrtMaxLong <= LongMath.FLOOR_SQRT_MAX_LONG);
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // java.math.BigInteger
      public void testMean() {
        // Odd-sized ranges have an obvious mean
        assertMean(2, 1, 3);
    
        assertMean(-2, -3, -1);
        assertMean(0, -1, 1);
        assertMean(1, -1, 3);
        assertMean((1L << 62) - 1, -1, Long.MAX_VALUE);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Preconditions.java

       *
       * But the methods in this class want to throw different exceptions, depending on the args, so it
       * appears that this pattern is not directly applicable. But we can use the ridiculous, devious
       * trick of throwing an exception in the middle of the construction of another exception. Hotspot
       * is fine with that.
       */
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
Back to top