Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for putString (0.19 sec)

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

       * running on the equivalent input. For cross-language compatibility, use {@link #putString},
       * usually with a charset of UTF-8. For other use cases, use {@code putUnencodedChars}.
       *
       * @since 15.0 (since 11.0 as putString(CharSequence))
       */
      @CanIgnoreReturnValue
      PrimitiveSink putUnencodedChars(CharSequence charSequence);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

            hashFunction.newHasher().putUnencodedChars(string).hash());
        for (Charset charset : CHARSETS) {
          assertEquals(
              hashFunction.hashString(string, charset),
              hashFunction.newHasher().putString(string, charset).hash());
        }
      }
    
      /**
       * This verifies that putUnencodedChars(String) and hashUnencodedChars(String) are equivalent,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          update(2, c);
          return this;
        }
    
        @CanIgnoreReturnValue
        @SuppressWarnings("deprecation") // need to use Charsets for Android tests to pass
        @Override
        public Hasher putString(CharSequence input, Charset charset) {
          if (Charsets.UTF_8.equals(charset)) {
            int utf16Length = input.length();
            int i = 0;
    
            // This loop optimizes for pure ASCII.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Suppliers.java

        }
    
        @Override
        @ParametricNullness
        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
          long nanos = expirationNanos;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashTestUtils.java

            hashFunction.newHasher().putUnencodedChars(string).hash());
        for (Charset charset : CHARSETS) {
          assertEquals(
              hashFunction.hashString(string, charset),
              hashFunction.newHasher().putString(string, charset).hash());
        }
      }
    
      /**
       * This verifies that putUnencodedChars(String) and hashUnencodedChars(String) are equivalent,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        public EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
        @SuppressWarnings("unchecked") // no less safe than putting it in the map!
        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
              ? ((Comparable) a.getKey()).compareTo(b.getKey())
              : keyComparator.compare(a.getKey(), b.getKey());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactHashMap.java

      // If the `next` bits in `entries[i]` are 0 that means there are no further entries for the given
      // short hash. But 0 is also a valid index in `entries`, so we add 1 to these indices before
      // putting them in `table` or in `next` bits, and subtract 1 again when we need an index value.
      //
      // The elements of `keys`, `values`, and `entries` are added sequentially, so that elements 0 to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Suppliers.java

        }
    
        @Override
        @ParametricNullness
        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
          long nanos = expirationNanos;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        public EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
        @SuppressWarnings("unchecked") // no less safe than putting it in the map!
        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
              ? ((Comparable) a.getKey()).compareTo(b.getKey())
              : keyComparator.compare(a.getKey(), b.getKey());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashMap.java

      // If the `next` bits in `entries[i]` are 0 that means there are no further entries for the given
      // short hash. But 0 is also a valid index in `entries`, so we add 1 to these indices before
      // putting them in `table` or in `next` bits, and subtract 1 again when we need an index value.
      //
      // The elements of `keys`, `values`, and `entries` are added sequentially, so that elements 0 to
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
Back to top