Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for minLength (0.19 sec)

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

       * @throws IllegalArgumentException if {@code minLength} or {@code padding} is negative
       * @return an array containing the values of {@code array}, with guaranteed minimum length {@code
       *     minLength}
       */
      public static long[] ensureCapacity(long[] array, int minLength, int padding) {
        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/UnsignedInts.java

      }
    
      enum LexicographicalComparator implements Comparator<int[]> {
        INSTANCE;
    
        @Override
        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]) {
              return UnsignedInts.compare(left[i], right[i]);
            }
          }
          return left.length - right.length;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/SignedBytes.java

      }
    
      private enum LexicographicalComparator implements Comparator<byte[]> {
        INSTANCE;
    
        @Override
        public int compare(byte[] left, byte[] right) {
          int minLength = Math.min(left.length, right.length);
          for (int i = 0; i < minLength; i++) {
            int result = SignedBytes.compare(left[i], right[i]);
            if (result != 0) {
              return result;
            }
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 7.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

      }
    
      enum LexicographicalComparator implements Comparator<long[]> {
        INSTANCE;
    
        @Override
        public int compare(long[] left, long[] right) {
          int minLength = Math.min(left.length, right.length);
          for (int i = 0; i < minLength; i++) {
            if (left[i] != right[i]) {
              return UnsignedLongs.compare(left[i], right[i]);
            }
          }
          return left.length - right.length;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top