Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for StaticImportPreferred (0.06 sec)

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

       * @throws IllegalArgumentException if {@code min > max}
       * @since 21.0
       */
      // A call to bare "min" or "max" would resolve to our varargs method, not to any static import.
      @SuppressWarnings("StaticImportPreferred")
      public static int constrainToRange(int value, int min, int max) {
        checkArgument(min <= max, "min (%s) must be less than or equal to max (%s)", min, max);
        return Math.min(Math.max(value, min), max);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 31.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Booleans.java

        INSTANCE;
    
        @Override
        public int compare(boolean[] left, boolean[] right) {
          // do not static import Math.min due to https://bugs.openjdk.org/browse/JDK-8357219
          @SuppressWarnings("StaticImportPreferred")
          int minLength = Math.min(left.length, right.length);
          for (int i = 0; i < minLength; i++) {
            int result = Boolean.compare(left[i], right[i]);
            if (result != 0) {
              return result;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 15:01:23 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Booleans.java

        INSTANCE;
    
        @Override
        public int compare(boolean[] left, boolean[] right) {
          // do not static import Math.min due to https://bugs.openjdk.org/browse/JDK-8357219
          @SuppressWarnings("StaticImportPreferred")
          int minLength = Math.min(left.length, right.length);
          for (int i = 0; i < minLength; i++) {
            int result = Boolean.compare(left[i], right[i]);
            if (result != 0) {
              return result;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 15:01:23 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedInts.java

        INSTANCE;
    
        @Override
        // A call to bare "min" or "max" would resolve to our varargs method, not to any static import.
        @SuppressWarnings("StaticImportPreferred")
        public int compare(int[] left, int[] right) {
          int minLength = Math.min(left.length, right.length);
          for (int i = 0; i < minLength; i++) {
            if (left[i] != right[i]) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Feb 09 16:22:33 UTC 2025
    - 13.8K bytes
    - Viewed (0)
Back to top