Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 229 for doTest (0.18 sec)

  1. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

      }
    
      /** Hasher that updates a message digest. */
      private static final class MessageDigestHasher extends AbstractByteHasher {
        private final MessageDigest digest;
        private final int bytes;
        private boolean done;
    
        private MessageDigestHasher(MessageDigest digest, int bytes) {
          this.digest = digest;
          this.bytes = bytes;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

      int size;
    
      @Param Algorithm algorithm;
      @Param HashMethod hashMethod;
    
      private enum HashMethod {
        MESSAGE_DIGEST_API() {
          @Override
          public byte[] hash(Algorithm algorithm, byte[] input) {
            MessageDigest md = algorithm.getMessageDigest();
            md.update(input);
            return md.digest();
          }
        },
        HASH_FUNCTION_DIRECT() {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

       * lies outside that, then {@link #escapeUnsafe} is called, otherwise no escaping is performed.
       *
       * @param replacementMap a map of characters to their escaped representations
       * @param safeMin the lowest character value in the safe range
       * @param safeMax the highest character value in the safe range
       * @param unsafeReplacement the default replacement for unsafe characters or null if no default
       *     replacement is required
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

              return false;
            }
            int result = 0;
            for (int i = 0; i < a.length; i++) {
              result |= a[i] ^ b[i];
            }
            return (result == 0);
          }
        },
        MESSAGE_DIGEST_IS_EQUAL {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            return MessageDigest.isEqual(a, b);
          }
        },
        ARRAYS_EQUALS {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

              return false;
            }
            int result = 0;
            for (int i = 0; i < a.length; i++) {
              result |= a[i] ^ b[i];
            }
            return (result == 0);
          }
        },
        MESSAGE_DIGEST_IS_EQUAL {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            return MessageDigest.isEqual(a, b);
          }
        },
        ARRAYS_EQUALS {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SortedMultiset.java

       * Returns the entry of the last element in this multiset, or {@code null} if this multiset is
       * empty.
       */
      @CheckForNull
      Entry<E> lastEntry();
    
      /**
       * Returns and removes the entry associated with the lowest element in this multiset, or returns
       * {@code null} if this multiset is empty.
       */
      @CheckForNull
      Entry<E> pollFirstEntry();
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Quantiles.java

        // Do a binary search until we're down to the range of two which encloses centerFloor (unless
        // all values are lower or higher than centerFloor, in which case we find the two highest or
        // lowest respectively). If centerFloor is in allRequired, we will definitely find it. If not,
        // but centerFloor + 1 is, we'll definitely find that. The closest value to the true (unrounded)
        // center will be at either low or high.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterables.java

      /**
       * Returns a view of {@code unfiltered} containing all elements that are of the type {@code
       * desiredType}. The returned iterable's iterator does not support {@code remove()}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(type::isInstance).map(type::cast)}.
       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * <pre>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    was the BEST butter, you know.'
    
      Alice had been looking over his shoulder with some curiosity.
    `What a funny watch!' she remarked.  `It tells the day of the
    month, and doesn't tell what o'clock it is!'
    
      `Why should it?' muttered the Hatter.  `Does YOUR watch tell
    you what year it is?'
    
      `Of course not,' Alice replied very readily:  `but that's
    because it stays the same year for such a long time together.'
    
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertEquals("{}", toTest);
      }
    
      public void testConstructorLenient_anonymousClass() {
        String toTest = MoreObjects.toStringHelper(new Object() {}).toString();
        assertTrue(toTest, toTest.matches(".*\\{\\}"));
      }
    
      @GwtIncompatible // Class names are obfuscated in GWT
      public void testConstructor_classObject() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
Back to top