Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for charlie (0.04 sec)

  1. guava/src/com/google/common/hash/Hashing.java

       *       servers {@code alpha}, {@code bravo}, and {@code charlie} and you occasionally need to
       *       take each of the servers offline, {@code consistentHash} will be a poor fit: It provides
       *       no way for you to specify which of the three buckets is disappearing. Thus, if your
       *       buckets change from {@code [alpha, bravo, charlie]} to {@code [bravo, charlie]}, it will
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:06:57 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IterablesTest.java

        sequences.add(new StringBuilder("charlie"));
        sequences.add(new StringBuilder("henry"));
        sequences.add(new StringBuilder("apple"));
        sequences.add("lemon");
    
        assertEquals(3, Iterables.indexOf(sequences, STARTSWITH_A));
      }
    
      public void testIndexOf_genericPredicate2() {
        List<String> sequences = Lists.newArrayList("bob", "charlie", "henry", "apple", "lemon");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        sequences.add(new StringBuilder("charlie"));
        sequences.add(new StringBuilder("henry"));
        sequences.add(new StringBuilder("apple"));
        sequences.add("lemon");
    
        assertEquals(3, Iterables.indexOf(sequences, STARTSWITH_A));
      }
    
      public void testIndexOf_genericPredicate2() {
        List<String> sequences = Lists.newArrayList("bob", "charlie", "henry", "apple", "lemon");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapMakerTest.java

    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.CountDownLatch;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * @author Charles Fry
     */
    @GwtCompatible
    @J2ktIncompatible // MapMaker
    @NullUnmarked
    public class MapMakerTest extends TestCase {
      @GwtIncompatible // NullPointerTester
      public void testNullParameters() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/TestingWeighers.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Utility {@link Weigher} implementations intended for use in testing.
     *
     * @author Charles Fry
     */
    @NullUnmarked
    public final class TestingWeighers {
    
      /** Returns a {@link Weigher} that returns the given {@code constant} for every request. */
      static Weigher<Object, Object> constantWeigher(int constant) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheLoader.java

     * more simply:
     *
     * {@snippet :
     * CacheLoader<Key, Graph> loader = CacheLoader.from(key -> createExpensiveGraph(key));
     * }
     *
     * @author Charles Fry
     * @since 10.0
     */
    @GwtCompatible
    public abstract class CacheLoader<K, V> {
      /** Constructor for use by subclasses. */
      protected CacheLoader() {}
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

     *
     * <p><b>Warning:</b> Unlike {@code Multiset}, entries whose values are zero are not automatically
     * removed from the map. Instead they must be removed manually with {@link #removeAllZeros}.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtCompatible
    public final class AtomicLongMap<K> implements Serializable {
      private final ConcurrentHashMap<K, Long> map;
    
      private AtomicLongMap(ConcurrentHashMap<K, Long> map) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMaker.java

     * java.util.WeakHashMap}, but note that it compares keys using object identity whereas {@code
     * WeakHashMap} uses {@link Object#equals}.
     *
     * @author Bob Lee
     * @author Charles Fry
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @J2ktIncompatible
    @GwtCompatible
    public final class MapMaker {
      private static final int DEFAULT_INITIAL_CAPACITY = 16;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * LocalCache emulation for GWT.
     *
     * @param <K> the base key type
     * @param <V> the base value type
     * @author Charles Fry
     * @author Jon Donovan
     */
    @NullUnmarked
    @SuppressWarnings("nullness") // TODO: b/384945891 - Remove after fixing checker.
    public class LocalCache<K, V> implements ConcurrentMap<K, V> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheBuilder.java

     *     normally {@code Object} unless it is constrained by using a method like {@link
     *     #removalListener}. Cache values may not be null.
     * @author Charles Fry
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @GwtCompatible
    public final class CacheBuilder<K, V> {
      private static final int DEFAULT_INITIAL_CAPACITY = 16;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
Back to top