Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for Kasper (0.19 sec)

  1. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

      public void testPutAfterHash() {
        Hasher hasher = Hashing.hmacMd5(MD5_KEY).newHasher();
    
        assertEquals(
            "9753980fe94daa8ecaa82216519393a9",
            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
        assertThrows(IllegalStateException.class, () -> hasher.putInt(42));
      }
    
      public void testHashTwice() {
        Hasher hasher = Hashing.hmacMd5(MD5_KEY).newHasher();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Throwables.java

        return stringWriter.toString();
      }
    
      /**
       * Returns the stack trace of {@code throwable}, possibly providing slower iteration over the full
       * trace but faster iteration over parts of the trace. Here, "slower" and "faster" are defined in
       * comparison to the normal way to access the stack trace, {@link Throwable#getStackTrace()
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Throwables.java

        return stringWriter.toString();
      }
    
      /**
       * Returns the stack trace of {@code throwable}, possibly providing slower iteration over the full
       * trace but faster iteration over parts of the trace. Here, "slower" and "faster" are defined in
       * comparison to the normal way to access the stack trace, {@link Throwable#getStackTrace()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/Hashing.java

                function.bits(),
                function);
          }
        }
    
        @Override
        HashCode makeHash(Hasher[] hashers) {
          byte[] bytes = new byte[bits() / 8];
          int i = 0;
          for (Hasher hasher : hashers) {
            HashCode newHash = hasher.hash();
            i += newHash.writeBytesTo(bytes, i, newHash.bits() / 8);
          }
          return HashCode.fromBytesNoCopy(bytes);
        }
    
    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)
  5. android/guava/src/com/google/common/hash/HashFunction.java

     *
     * <p>The primary way to provide the data that your hash function should act on is via a {@link
     * Hasher}. Obtain a new hasher from the hash function using {@link #newHasher}, "push" the relevant
     * data into it using methods like {@link Hasher#putBytes(byte[])}, and finally ask for the {@code
     * HashCode} when finished using {@link Hasher#hash}. (See an {@linkplain #newHasher example} of
     * this.)
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Collections2.java

       * element in the underlying collection and determine which elements satisfy the filter. When a
       * live view is <i>not</i> needed, it may be faster to copy {@code Iterables.filter(unfiltered,
       * predicate)} and use the copy.
       *
       * <p><b>Warning:</b> {@code predicate} must be <i>consistent with equals</i>, as documented at
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/OptionalTest.java

        Optional<String> optionalName = Optional.fromNullable("bob");
        assertEquals("bob", optionalName.get());
      }
    
      public void testFromNullable_null() {
        // not promised by spec, but easier to test
        assertSame(Optional.absent(), Optional.fromNullable(null));
      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/LongMath.java

     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class LongMath {
      // NOTE: Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
    
      @VisibleForTesting static final long MAX_SIGNED_POWER_OF_TWO = 1L << (Long.SIZE - 2);
    
      /**
       * Returns the smallest power of two greater than or equal to {@code x}. This is equivalent to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimap.java

     *       <i>removing</i> that key from the multimap.
     *   <li>The total entry count is available as {@link #size}.
     *   <li>Many complex operations become easier; for example, {@code
     *       Collections.min(multimap.values())} finds the smallest value across all keys.
     * </ul>
     *
     * <h3>Implementations</h3>
     *
     * <ul>
     *   <li>{@link ImmutableListMultimap}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

     * }</pre>
     *
     * <h3>Alternatives</h3>
     *
     * <h4>Frameworks</h4>
     *
     * <p>When chaining together a graph of asynchronous operations, you will often find it easier to
     * use a framework. Frameworks automate the process, often adding features like monitoring,
     * debugging, and cancellation. Examples of frameworks include:
     *
     * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
Back to top