- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testOf_ordering_dupes (0.44 sec)
-
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
static int nextId; Integer id = nextId++; @Override public int compareTo(Interface other) { return id.compareTo(((Impl) other).id); } } public void testOf_ordering_dupes() { SortedSet<String> set = of("e", "a", "e", "f", "b", "b", "d", "a", "c"); assertThat(set).containsExactly("a", "b", "c", "d", "e", "f").inOrder(); } public void testOf_comparator() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.7K bytes - Viewed (0)