Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CollectionIncompatibleType (0.18 sec)

  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)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. android/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"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  3. 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"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
Back to top