Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 467 for Hare (0.12 sec)

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

    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class SetMultimapPutTester<K, V> extends AbstractMultimapTester<K, V, SetMultimap<K, V>> {
      // Tests for non-duplicate values are in MultimapPutTester
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutDuplicateValuePreservesSize() {
        assertFalse(multimap().put(k0(), v0()));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/PatternFilenameFilter.java

        this.pattern = Preconditions.checkNotNull(pattern);
      }
    
      /*
       * Our implementation works fine with a null `dir`. However, there's nothing in the documentation
       * of the supertype that suggests that implementations are expected to tolerate null. That said, I
       * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
       * parameter as non-nullable (since passing null to a FilenameFilter is unsafe in general), but if
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. futures/listenablefuture9999/pom.xml

        version number is enough for some build systems (notably, Gradle) to select
        that empty artifact over the "real" listenablefuture-1.0 -- avoiding a
        conflict with the copy of ListenableFuture in guava itself. If users are
        using an older version of Guava or a build system other than Gradle, they
        may see class conflicts. If so, they can solve them by manually excluding
        the listenablefuture artifact or manually forcing their build systems to
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 12 21:42:09 GMT 2018
    - 2.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/ForwardingCacheTest.java

        when(mock.asMap()).thenReturn(null);
        assertNull(forward.asMap());
      }
    
      public void testCleanUp() {
        forward.cleanUp();
        verify(mock).cleanUp();
      }
    
      /** Make sure that all methods are forwarded. */
      private static class OnlyGet<K, V> extends ForwardingCache<K, V> {
        @Override
        protected Cache<K, V> delegate() {
          throw new AssertionError();
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

    import java.util.Random;
    
    /**
     * Benchmarks for comparing {@link MessageDigest}s and {@link com.google.common.hash.HashFunction}s
     * that wrap {@link MessageDigest}s.
     *
     * <p>Parameters for the benchmark are:
     *
     * <ul>
     *   <li>size: The length of the byte array to hash.
     *   <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.).
     *   <li>hashMethod: how to hash the data (using the Hashing API or the MessageDigest API).
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

        // Make sure to get an unmodifiable iterator
        return new MinimalIterable<>(Arrays.asList(elements).iterator());
      }
    
      /**
       * Returns an iterable whose iterator returns the given elements in order. The elements are copied
       * out of the source collection at the time this method is called.
       */
      @SuppressWarnings("unchecked") // Es come in, Es go out
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

    import java.util.List;
    import org.checkerframework.checker.nullness.qual.Nullable;
    import org.junit.Ignore;
    
    /**
     * Tester to make sure the {@code iterator().remove()} implementation of {@code Multiset} works when
     * there are multiple occurrences of elements.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

                    CollectionFeature.ALLOWS_NULL_VALUES,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.GENERAL_PURPOSE,
                    MultisetFeature.ENTRIES_ARE_VIEWS)
                .named("HashMultiset")
                .createTestSuite());
        suite.addTestSuite(HashMultisetTest.class);
        return suite;
      }
    
      private static TestStringMultisetGenerator hashMultisetGenerator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        assertEquals(distinct, getMultiset().elementSet().size());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_occurrences_unsupported_absent() {
        // notice: we don't care whether it succeeds, or fails with UOE
        try {
          assertEquals(
              "multiset.remove(absent, 2) didn't return 0 or throw an exception",
              0,
              getMultiset().remove(e3(), 2));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Predicate.java

       * <i>typically</i> means that {@code this.apply(t) == that.apply(t)} for all {@code t} of type
       * {@code T}). Note that a {@code false} result from this method does not imply that the
       * predicates are known <i>not</i> to be interchangeable.
       */
      @Override
      boolean equals(@CheckForNull Object object);
    
      @Override
      default boolean test(@ParametricNullness T input) {
        return apply(input);
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top