- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for containsNoDuplicates (0.1 seconds)
-
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()))Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 20.4K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 47.5K bytes - Click Count (0)