Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for purge (0.17 sec)

  1. android/guava/src/com/google/common/base/Utf8.java

        // Warning to maintainers: this implementation is highly optimized.
        int utf16Length = sequence.length();
        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
        while (i < utf16Length && sequence.charAt(i) < 0x80) {
          i++;
        }
    
        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/HashFunction.java

    import com.google.errorprone.annotations.Immutable;
    import java.nio.ByteBuffer;
    import java.nio.charset.Charset;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A hash function is a collision-averse pure function that maps an arbitrary block of data to a
     * number called a <i>hash code</i>.
     *
     * <h3>Definition</h3>
     *
     * <p>Unpacking this definition:
     *
     * <ul>
    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)
  3. guava/src/com/google/common/cache/LocalCache.java

                        entryKey, hash, value, valueReference.getWeight(), RemovalCause.COLLECTED);
                  } else if (map.isExpired(e, now)) {
                    // This is a duplicate check, as preWriteCleanup already purged expired
                    // entries, but let's accommodate an incorrect expiration queue.
                    enqueueNotification(
                        entryKey, hash, value, valueReference.getWeight(), RemovalCause.EXPIRED);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedBytes.java

          }
    
          @Override
          public String toString() {
            return "UnsignedBytes.lexicographicalComparator() (pure Java version)";
          }
        }
    
        /**
         * Returns the Unsafe-using Comparator, or falls back to the pure-Java implementation if unable
         * to do so.
         */
        static Comparator<byte[]> getBestComparator() {
          try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

     *
     * @author Kevin Damm
     * @author Kyle Maddison
     */
    @ElementTypesAreNonnullByDefault
    final class LittleEndianByteArray {
    
      /** The instance that actually does the work; delegates to Unsafe or a pure-Java fallback. */
      private static final LittleEndianBytes byteArray;
    
      /**
       * Load 8 bytes into long in a little endian manner, from the substring between position and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Utf8.java

        // Warning to maintainers: this implementation is highly optimized.
        int utf16Length = sequence.length();
        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
        while (i < utf16Length && sequence.charAt(i) < 0x80) {
          i++;
        }
    
        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/BloomFilter.java

      /**
       * A strategy to translate T instances, to {@code numHashFunctions} bit indexes.
       *
       * <p>Implementations should be collections of pure functions (i.e. stateless).
       */
      interface Strategy extends java.io.Serializable {
    
        /**
         * Sets {@code numHashFunctions} bits of the given bit array, by hashing a user element.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

                        entryKey, hash, value, valueReference.getWeight(), RemovalCause.COLLECTED);
                  } else if (map.isExpired(e, now)) {
                    // This is a duplicate check, as preWriteCleanup already purged expired
                    // entries, but let's accommodate an incorrect expiration queue.
                    enqueueNotification(
                        entryKey, hash, value, valueReference.getWeight(), RemovalCause.EXPIRED);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        if (Charsets.UTF_8.equals(charset)) {
          int utf16Length = input.length();
          int h1 = seed;
          int i = 0;
          int len = 0;
    
          // This loop optimizes for pure ASCII.
          while (i + 4 <= utf16Length) {
            char c0 = input.charAt(i);
            char c1 = input.charAt(i + 1);
            char c2 = input.charAt(i + 2);
            char c3 = input.charAt(i + 3);
    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)
Back to top