Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for CollectionIncompatibleType (0.36 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        assertTrue(set.contains("google"));
        assertFalse(set.contains(""));
        assertFalse(set.contains("california"));
        assertFalse(set.contains(null));
      }
    
      @SuppressWarnings("CollectionIncompatibleType") // testing incompatible types
      public void testExplicit_containsMismatchedTypes() {
        SortedSet<String> set =
            ImmutableSortedSet.orderedBy(STRING_LENGTH)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.2K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

            expectedHash += entry.hashCode();
          }
          assertEquals(expectedHash, map.hashCode());
        }
    
        assertMoreInvariants(map);
      }
    
      @SuppressWarnings("CollectionIncompatibleType")
      private void assertEntrySetNotContainsString(Set<Entry<K, V>> entrySet) {
        // Very unlikely that a buggy collection would ever return true. It might accidentally throw.
        assertFalse(entrySet.contains("foo"));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
Back to Top