Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for Masing (0.19 sec)

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

       * specific length.
       *
       * <p>For example, if you need 1024-bit hash codes, you could join two {@link Hashing#sha512} hash
       * functions together: {@code Hashing.concatenating(Hashing.sha512(), Hashing.sha512())}.
       *
       * @since 19.0
       */
      public static HashFunction concatenating(
          HashFunction first, HashFunction second, HashFunction... rest) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     * {@link PriorityQueue} and supplies blocking retrieval operations. While this queue is logically
     * unbounded, attempted additions may fail due to resource exhaustion (causing {@code
     * OutOfMemoryError}). This class does not permit {@code null} elements. A priority queue relying on
     * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterators.java

       * a view of the array; subsequent changes to the array will be reflected in the iterator.
       *
       * <p><b>Note:</b> It is often preferable to represent your data using a collection type, for
       * example using {@link Arrays#asList(Object[])}, making this method unnecessary.
       *
       * <p>The {@code Iterable} equivalent of this method is either {@link Arrays#asList(Object[])},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableBiMap.java

        return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction);
      }
    
      /**
       * Returns the empty bimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting to any type is safe because the set will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableBiMap<K, V> of() {
        return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(
            "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(MD5_KEY).toString());
        assertEquals(
            "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(keyData).toString());
    
        assertEquals(
            "Hashing.hmacSha1(Key[algorithm=HmacSHA1, format=RAW])",
            Hashing.hmacSha1(SHA1_KEY).toString());
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

        };
        ;
    
        public abstract byte[] hash(Algorithm algorithm, byte[] input);
      }
    
      private enum Algorithm {
        MD5("MD5", Hashing.md5()),
        SHA_1("SHA-1", Hashing.sha1()),
        SHA_256("SHA-256", Hashing.sha256()),
        SHA_384("SHA-384", Hashing.sha384()),
        SHA_512("SHA-512", Hashing.sha512());
    
        private final String algorithmName;
        private final HashFunction hashFn;
    
    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)
  7. android/guava/src/com/google/common/collect/HashBiMap.java

        }
    
        if (hashTableKToV.length < minCapacity) {
          int newTableSize = Hashing.closedTableSize(minCapacity, 1.0);
          hashTableKToV = createFilledWithAbsent(newTableSize);
          hashTableVToK = createFilledWithAbsent(newTableSize);
    
          for (int entryToRehash = 0; entryToRehash < size; entryToRehash++) {
            int keyHash = Hashing.smearedHash(keys[entryToRehash]);
            int keyBucket = bucket(keyHash);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * objects per entry.  Instead we use an open-addressed hash table.  This design is basically
       * equivalent to RegularImmutableSet, save that instead of having a hash table containing the
       * elements directly and null for empty positions, we store indices of the keys in the hash table,
       * and ABSENT for empty positions.  We then look up the keys in alternatingKeysAndValues.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

     * the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Hashing.ChecksumType.ADLER_32;
    import static com.google.common.hash.Hashing.ChecksumType.CRC_32;
    
    import java.util.zip.Checksum;
    import junit.framework.TestCase;
    
    /**
     * Tests for ChecksumHashFunction.
     *
     * @author Colin Decker
     */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 14:33:12 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

                  }
                });
    
        assertExpectedBytes(readBytes);
      }
    
      public void testHash() throws IOException {
        HashCode expectedHash = Hashing.md5().hashBytes(expected);
        assertEquals(expectedHash, source.hash(Hashing.md5()));
      }
    
      public void testSlice_illegalArguments() {
        assertThrows(
            "expected IllegalArgumentException for call to slice with offset -1: " + source,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
Back to top