Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for stroke (0.21 sec)

  1. android/guava/src/com/google/common/util/concurrent/Striped.java

     * i.e. {@code if (key1.equals(key2))} then {@code striped.get(key1) == striped.get(key2)} (assuming
     * {@link Object#hashCode()} is correctly implemented for the keys). Note that if {@code key1} is
     * <strong>not</strong> equal to {@code key2}, it is <strong>not</strong> guaranteed that {@code
     * striped.get(key1) != striped.get(key2)}; the elements might nevertheless be mapped to the same
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  2. guava/src/com/google/common/collect/Interners.java

        private final MapMaker mapMaker = new MapMaker();
        private boolean strong = true;
    
        private InternerBuilder() {}
    
        /**
         * Instructs the {@link InternerBuilder} to build a strong interner.
         *
         * @see Interners#newStrongInterner()
         */
        public InternerBuilder strong() {
          this.strong = true;
          return this;
        }
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/collect/MapMaker.java

        keyStrength = checkNotNull(strength);
        if (strength != Strength.STRONG) {
          // STRONG could be used during deserialization.
          useCustomMap = true;
        }
        return this;
      }
    
      Strength getKeyStrength() {
        return MoreObjects.firstNonNull(keyStrength, Strength.STRONG);
      }
    
      /**
       * Specifies that each value (not key) stored in the map should be wrapped in a {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  4. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

     */
    
    package com.google.common.collect.testing;
    
    import java.util.Arrays;
    
    /**
     * Minimal GWT emulation of {@code com.google.common.collect.testing.Platform}.
     *
     * <p><strong>This .java file should never be consumed by javac.</strong>
     *
     * @author Hayward Chan
     */
    final class Platform {
      // Class.cast is not supported in GWT.
      static void checkCast(Class<?> clazz, Object obj) {}
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

            | ((source[offset + 3] & 0xFF) << 24);
      }
    
      /**
       * Indicates that the loading of Unsafe was successful and the load and store operations will be
       * very efficient. May be useful for calling code to fall back on an alternative implementation
       * that is slower than Unsafe.get/store but faster than the pure-Java mask-and-shift.
       */
      static boolean usingUnsafe() {
        return (byteArray instanceof UnsafeByteArray);
      }
    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/cache/RemovalNotification.java

     * A notification of the removal of a single entry. The key and/or value may be null if they were
     * already garbage collected.
     *
     * <p>Like other {@code Entry} instances associated with {@code CacheBuilder}, this class holds
     * strong references to the key and value, regardless of the type of references the cache may be
     * using.
     *
     * @author Charles Fry
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

      Supplier<? extends StatsCounter> statsCounterSupplier = NULL_STATS_COUNTER;
    
      private CacheBuilder() {}
    
      /**
       * Constructs a new {@code CacheBuilder} instance with default settings, including strong keys,
       * strong values, and no automatic eviction of any kind.
       *
       * <p>Note that while this return type is {@code CacheBuilder<Object, Object>}, type parameters on
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheTesting.java

        ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
        if (entry != null) {
          ValueReference<K, V> valueRef = entry.getValueReference();
          // fail on strong/computing refs
          Preconditions.checkState(valueRef instanceof Reference);
          Reference<V> ref = (Reference<V>) valueRef;
          if (ref != null) {
            ref.clear();
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

      }
    
      // Helper to assert common properties of xml escapers.
      static void assertBasicXmlEscaper(
          CharEscaper xmlEscaper, boolean shouldEscapeQuotes, boolean shouldEscapeWhitespaceChars) {
        // Simple examples (smoke tests)
        assertEquals("xxx", xmlEscaper.escape("xxx"));
        assertEquals("test &amp; test &amp; test", xmlEscaper.escape("test & test & test"));
        assertEquals("test &lt;&lt; 1", xmlEscaper.escape("test << 1"));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 4.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/IoTestCase.java

            // fall back to copying URLs to files in the testDir == null block below
          }
        }
    
        if (testDir == null) {
          // testdata resources aren't file:// urls, so create a directory to store them in and then
          // copy the resources to the filesystem as needed
          testDir = createTempDir();
        }
    
        return testDir;
      }
    
      /** Returns the file with the given name under the testdata directory. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top