Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Balint (0.2 sec)

  1. guava/src/com/google/common/collect/ComparisonChain.java

     *
     * <p>Example usage of {@code ComparisonChain}:
     *
     * <pre>{@code
     * public int compareTo(Foo that) {
     *   return ComparisonChain.start()
     *       .compare(this.aString, that.aString)
     *       .compare(this.anInt, that.anInt)
     *       .compare(this.anEnum, that.anEnum, Ordering.natural().nullsLast())
     *       .result();
     * }
     * }</pre>
     *
     * <p>The value of this expression will have the same sign as the <i>first nonzero</i> comparison
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
Back to top