Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for with_duplicates (0.37 sec)

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

        Collections.sort(list, c);
        assertThat(list).containsExactly(8, 6, 7, 5, 3, 0, 9).inOrder();
        reserializeAndAssert(c);
      }
    
      public void testExplicit_withDuplicates() {
        try {
          Ordering.explicit(1, 2, 3, 4, 2);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(1, Iterables.indexOf(list, Predicates.equalTo("bob")));
        assertEquals(-1, Iterables.indexOf(list, Predicates.equalTo("jack")));
      }
    
      public void testIndexOf_withDuplicates() {
        List<String> list = Lists.newArrayList("mary", "bob", "bob", "bob", "sam");
        assertEquals(0, Iterables.indexOf(list, Predicates.equalTo("mary")));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(1, Iterables.indexOf(list, Predicates.equalTo("bob")));
        assertEquals(-1, Iterables.indexOf(list, Predicates.equalTo("jack")));
      }
    
      public void testIndexOf_withDuplicates() {
        List<String> list = Lists.newArrayList("mary", "bob", "bob", "bob", "sam");
        assertEquals(0, Iterables.indexOf(list, Predicates.equalTo("mary")));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top