Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for containsNoDuplicates (0.15 sec)

  1. guava-tests/test/com/google/common/net/MediaTypeTest.java

          } else {
            assertThat(charset).isAbsent();
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testConstants_areUnique() {
        assertThat(getConstants()).containsNoDuplicates();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      private static FluentIterable<Field> getConstantFields() {
        return FluentIterable.from(asList(MediaType.class.getDeclaredFields()))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IterablesTest.java

      public void testRemoveIf_randomAccess_notPermittingDuplicates() {
        // https://github.com/google/guava/issues/1596
        List<String> uniqueList = newArrayList("a", "b", "c", "d", "e");
        assertThat(uniqueList).containsNoDuplicates();
    
        assertTrue(uniqueList instanceof RandomAccess);
        assertTrue(
            removeIf(
                uniqueList,
                new Predicate<String>() {
                  @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      public void testRemoveIf_randomAccess_notPermittingDuplicates() {
        // https://github.com/google/guava/issues/1596
        List<String> uniqueList = newArrayList("a", "b", "c", "d", "e");
        assertThat(uniqueList).containsNoDuplicates();
    
        assertTrue(uniqueList instanceof RandomAccess);
        assertTrue(
            removeIf(
                uniqueList,
                new Predicate<String>() {
                  @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
Back to top