Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sortIPs (0.15 sec)

  1. android/guava/src/com/google/common/primitives/Booleans.java

          int bVal = b ? trueValue : 0;
          return bVal - aVal;
        }
    
        @Override
        public String toString() {
          return toString;
        }
      }
    
      /**
       * Returns a {@code Comparator<Boolean>} that sorts {@code true} before {@code false}.
       *
       * <p>This is particularly useful in Java 8+ in combination with {@code Comparator.comparing},
       * e.g. {@code Comparator.comparing(Foo::hasBar, trueFirst())}.
       *
       * @since 21.0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top