Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 204 for tight (0.14 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

            rnd.nextBytes(left);
            byte[] right = left.clone();
            assertThat(comparator.compare(left, right)).isEqualTo(0);
            int i = rnd.nextInt(left.length);
            left[i] ^= (byte) (1 + rnd.nextInt(255));
            assertThat(comparator.compare(left, right)).isNotEqualTo(0);
            assertThat(UnsignedBytes.compare(left[i], right[i]) > 0)
                .isEqualTo(comparator.compare(left, right) > 0);
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/TempFileCreator.java

                    return acl;
                  }
                };
            return () -> attribute;
          } catch (IOException e) {
            // We throw a new exception each time so that the stack trace is right.
            return () -> {
              throw new IOException("Could not find user", e);
            };
          }
        }
    
        private static String getUsername() {
          /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InetAddresses.java

       * a qualifying run is found, its hextets are replaced by the sentinel value -1.
       *
       * @param hextets {@code int[]} mutable array of eight 16-bit hextets
       */
      private static void compressLongestRunOfZeroes(int[] hextets) {
        int bestRunStart = -1;
        int bestRunLength = -1;
        int runStart = -1;
        for (int i = 0; i < hextets.length + 1; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/primitives/UnsignedBytes.java

          @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 = UnsignedBytes.compare(left[i], right[i]);
              if (result != 0) {
                return result;
              }
            }
            return left.length - right.length;
          }
    
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInts.java

        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;
        }
    
        @Override
        public String toString() {
    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)
  6. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * as a further line of defense, prefer not to perform any locking inside a task that will be run
       * under {@code directExecutor}: Not only might the wait for a lock be long, but if the running
       * thread was holding a lock, the listener may deadlock or break lock isolation.
       *
       * <p>This instance is equivalent to:
       *
       * <pre>{@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                          public int compare(Entry<String, String> left, Entry<String, String> right) {
                            return ComparisonChain.start()
                                .compare(left.getKey(), right.getKey(), Ordering.natural().nullsFirst())
                                .compare(
                                    left.getValue(), right.getValue(), Ordering.natural().nullsFirst())
                                .result();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Floats.java

        INSTANCE;
    
        @Override
        public int compare(float[] left, float[] right) {
          int minLength = Math.min(left.length, right.length);
          for (int i = 0; i < minLength; i++) {
            int result = Float.compare(left[i], right[i]);
            if (result != 0) {
              return result;
            }
          }
          return left.length - right.length;
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              return left.getName().compareTo(right.getName());
            }
          };
    
      private static final Ordering<Invokable<?, ?>> BY_PARAMETERS =
          new Ordering<Invokable<?, ?>>() {
            @Override
            public int compare(Invokable<?, ?> left, Invokable<?, ?> right) {
              return Ordering.usingToString().compare(left.getParameters(), right.getParameters());
            }
          };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       * of {@link CombinedFuture}, the user-supplied callback usually has its own references to inputs.
       */
      /*
       * In certain circumstances, this field might theoretically not be visible to an afterDone() call
       * triggered by cancel(). For details, see the comments on the fields of TimeoutFuture.
       */
      @CheckForNull @LazyInit
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top