Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 526 for Collections2 (0.15 sec)

  1. android/guava/src/com/google/common/collect/TopKSelector.java

    import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT;
    import static java.lang.Math.max;
    import static java.util.Arrays.asList;
    import static java.util.Arrays.sort;
    import static java.util.Collections.unmodifiableList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.math.IntMath;
    import java.math.RoundingMode;
    import java.util.Arrays;
    import java.util.Comparator;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

    import static com.google.common.collect.Tables.transpose;
    import static com.google.common.collect.Tables.unmodifiableRowSortedTable;
    import static com.google.common.collect.Tables.unmodifiableTable;
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Function;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

            return items[takeIndex];
          } finally {
            monitor.leave();
          }
        } else {
          return null;
        }
      }
    
      // this doc comment is overridden to remove the reference to collections
      // greater in size than Integer.MAX_VALUE
      /**
       * Returns the number of elements in this queue.
       *
       * @return the number of elements in this queue
       */
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportImpl.java

    import java.net.InetAddress;
    import java.net.InetSocketAddress;
    import java.net.Socket;
    import java.net.SocketException;
    import java.security.MessageDigest;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.ListIterator;
    import java.util.Locale;
    import java.util.Set;
    import java.util.concurrent.Semaphore;
    import java.util.concurrent.TimeUnit;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

     * not correctly obey its specification.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/ImmutableCollectionsExplained">immutable collections</a>.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 2.0 (implements {@code NavigableMap} since 12.0)
     */
    @GwtCompatible
    public final class ImmutableSortedMap<K, V> extends ImmutableMap<K, V>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Joiner.java

         * List, which is _even more likely_ to have size() implemented to be fast and side-effect-free.
         *
         * We could consider recognizing specific other collections as safe (like ImmutableCollection,
         * except ContiguousSet!) or as not worth this optimization (CopyOnWriteArrayList?).
         */
        if (parts instanceof List) {
          int size = ((List<?>) parts).size();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 21K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

                // CharSequences
                .add("field1", "")
                .add("field2", new StringBuilder())
                // nio CharBuffer (implements CharSequence) is tested separately below
                // Collections and Maps
                .add("field11", Arrays.asList("Hello"))
                .add("field12", new ArrayList<>())
                .add("field13", new HashMap<>())
                // Optionals
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        // wait for entries to expire, but don't call expireEntries
        ticker.advance(EXPIRING_TIME * 10, MILLISECONDS);
    
        // add a single unexpired entry
        cache.getUnchecked(KEY_PREFIX + 11);
    
        // collections views shouldn't expose expired entries
        assertThat(Iterators.size(cache.asMap().entrySet().iterator())).isEqualTo(1);
        assertThat(Iterators.size(cache.asMap().keySet().iterator())).isEqualTo(1);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

    import java.util.concurrent.LinkedBlockingDeque;
    import java.util.concurrent.LinkedBlockingQueue;
    import java.util.concurrent.PriorityBlockingQueue;
    import java.util.concurrent.SynchronousQueue;
    
    /**
     * Utility class for collections.
     *
     * @author koichik
     */
    public abstract class CollectionsUtil {
    
        /**
         * Do not instantiate.
         */
        protected CollectionsUtil() {
        }
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

    import com.google.common.collect.Maps;
    import com.google.common.collect.Sets;
    import com.google.j2objc.annotations.Weak;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.EnumMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.TimeUnit;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 17:06:34 UTC 2025
    - 35.9K bytes
    - Viewed (0)
Back to top