Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for customComparator (0.36 sec)

  1. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(network.nodeOrder()).isEqualTo(unordered());
        assertThat(network.nodes()).containsExactly(4, 1, 3);
      }
    
      // Sorting of user-defined classes
    
      @Test
      public void customComparator() {
        Comparator<NonComparableSuperClass> comparator =
            new Comparator<NonComparableSuperClass>() {
              @Override
              public int compare(NonComparableSuperClass left, NonComparableSuperClass right) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top