Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for H2 (0.19 sec)

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

        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
        h2.putUnencodedChars(s);
        assertEquals(h1.hash(), h2.hash());
      }
    
      static class StreamingVersion extends AbstractHashFunction {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
        h2.putUnencodedChars(s);
        assertEquals(h1.hash(), h2.hash());
      }
    
      static class StreamingVersion extends AbstractHashFunction {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/package-info.java

     * the License.
     */
    
    /**
     * Basic utility libraries and interfaces.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
     * <h2>Contents</h2>
     *
     * The classes in this package that are most commonly useful are:
     *
     * <h3>String utilities</h3>
     *
     * <ul>
     *   <li>{@link Ascii}
     *   <li>{@link CaseFormat}
     *   <li>{@link CharMatcher}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 16:48:06 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/ObjectsTest.java

        assertFalse(Objects.equal("1", 1));
      }
    
      public void testHashCode() throws Exception {
        int h1 = Objects.hashCode(1, "two", 3.0);
        int h2 = Objects.hashCode(Integer.valueOf(1), new String("two"), Double.valueOf(3.0));
        // repeatable
        assertEquals(h1, h2);
    
        // These don't strictly need to be true, but they're nice properties.
        assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/package-info.java

     * library.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/PrimitivesExplained">primitive utilities</a>.
     *
     * <h2>Contents</h2>
     *
     * <h3>Value types</h3>
     *
     * <ul>
     *   <li>{@link ImmutableDoubleArray}
     *   <li>{@link ImmutableIntArray}
     *   <li>{@link ImmutableLongrray}
     *   <li>{@link UnsignedInteger}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/package-info.java

     *
     * <p>The classes in this package include:
     *
     * <h2>Immutable collections</h2>
     *
     * These are collections whose contents will never change. They also offer a few additional
     * guarantees (see {@link ImmutableCollection} for details). Implementations are available for both
     * the JDK collection types and the Guava collection types (listed below).
     *
     * <h2>Collection types</h2>
     *
     * <dl>
     *   <dt>{@link Multimap}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

          }
          h1 ^= mixK1(k1);
          h2 ^= mixK2(k2);
        }
    
        @Override
        protected HashCode makeHash() {
          h1 ^= length;
          h2 ^= length;
    
          h1 += h2;
          h2 += h1;
    
          h1 = fmix64(h1);
          h2 = fmix64(h2);
    
          h1 += h2;
          h2 += h1;
    
          return HashCode.fromBytesNoCopy(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/ObjectsTest.java

        assertFalse(Objects.equal("1", 1));
      }
    
      public void testHashCode() throws Exception {
        int h1 = Objects.hashCode(1, "two", 3.0);
        int h2 = Objects.hashCode(Integer.valueOf(1), new String("two"), Double.valueOf(3.0));
        // repeatable
        assertEquals(h1, h2);
    
        // These don't strictly need to be true, but they're nice properties.
        assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/package-info.java

     * the License.
     */
    
    /**
     * Basic utility libraries and interfaces.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
     * <h2>Contents</h2>
     *
     * The classes in this package that are most commonly useful are:
     *
     * <h3>String utilities</h3>
     *
     * <ul>
     *   <li>{@link Ascii}
     *   <li>{@link CaseFormat}
     *   <li>{@link CharMatcher}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 16:48:06 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/eventbus/EventBus.java

    import java.util.concurrent.Executor;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    
    /**
     * Dispatches events to listeners, and provides ways for listeners to register themselves.
     *
     * <h2>Avoid EventBus</h2>
     *
     * <p><b>We recommend against using EventBus.</b> It was designed many years ago, and newer
     * libraries offer better ways to decouple components and react to events.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
Back to top