Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testComparatorEquivalent (0.1 sec)

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

        }
      }
    
      /** Validates that the Comparator equivalent we document is correct. */
      @J2ktIncompatible // TODO b/315311435 - J2kt cannot emulate Comparator<C>.<U>thenComparing()
      public void testComparatorEquivalent() {
        Comparator<Foo> comparatorUsingComparisonChain =
            (a, b) ->
                ComparisonChain.start()
                    .compare(a.aString, b.aString)
                    .compare(a.anInt, b.anInt)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 13:27:08 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top