Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for comments (0.2 sec)

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

         *     might be the keys' natural order)
         * @since 31.0
         */
        @Override
        @SuppressWarnings("unchecked") // see inline comments
        public ImmutableSortedMap<K, V> buildOrThrow() {
          switch (size) {
            case 0:
              return emptyMap(comparator);
            case 1:
              // We're careful to put only K and V instances in.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

       * the set is the same as the ordering of the given contents.
       */
      private static <E> void verifyLinkedHashSetContents(
          LinkedHashSet<E> set, Collection<E> contents) {
        assertEquals(
            "LinkedHashSet should have preserved order for iteration",
            new ArrayList<E>(set),
            new ArrayList<E>(contents));
        verifySetContents(set, contents);
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

       */
      @CanIgnoreReturnValue
      public static int checkElementIndex(int index, int size, String desc) {
        // Carefully optimized for execution by hotspot (explanatory comment above)
        if (index < 0 || index >= size) {
          throw new IndexOutOfBoundsException(badElementIndex(index, size, desc));
        }
        return index;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Futures.java

             * pending, so its `state` field hasn't been nulled out yet.
             *
             * OK, it's technically possible for this to fail in the presence of unsafe publishing, as
             * discussed in the comments in TimeoutFuture. TODO(cpovirk): Maybe check for null before
             * calling recordOutputCancellation?
             */
            requireNonNull(localState).recordOutputCancellation(interruptIfRunning);
            return true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * for this with respect to reads.
         *
         * As a guide, all critical volatile reads and writes to the count field are marked in code
         * comments.
         */
    
        @Weak final MapMakerInternalMap<K, V, E, S> map;
    
        /**
         * The number of live elements in this segment's region. This does not include unset elements
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSortedMap.java

    import java.util.stream.Collector;
    import java.util.stream.Collectors;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link NavigableMap} whose contents will never change, with many other important properties
     * detailed at {@link ImmutableCollection}.
     *
     * <p><b>Warning:</b> as with any sorted collection, you are strongly advised not to use a {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        for (Waiter currentWaiter = head; currentWaiter != null; currentWaiter = currentWaiter.next) {
          currentWaiter.unpark();
        }
      }
    
      /**
       * Clears the {@link #listeners} list and prepends its contents to {@code onto}, least recently
       * added first.
       */
      @CheckForNull
      private Listener clearListeners(@CheckForNull Listener onto) {
        // We need to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Sets.java

       *
       * @param elements the elements that the set should contain
       * @return a new thread-safe set containing those elements (minus duplicates)
       * @throws NullPointerException if {@code elements} or any of its contents is null
       * @since 15.0
       */
      public static <E> Set<E> newConcurrentHashSet(Iterable<? extends E> elements) {
        Set<E> set = newConcurrentHashSet();
        Iterables.addAll(set, elements);
        return set;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Preconditions.java

       */
      @CanIgnoreReturnValue
      public static int checkElementIndex(int index, int size, String desc) {
        // Carefully optimized for execution by hotspot (explanatory comment above)
        if (index < 0 || index >= size) {
          throw new IndexOutOfBoundsException(badElementIndex(index, size, desc));
        }
        return index;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

       * method returns instances of a different class than {@code factory.get()} does.
       *
       * <p>The multimap is serializable if {@code map}, {@code factory}, the collections generated by
       * {@code factory}, and the multimap contents are all serializable.
       *
       * <p>The multimap is not threadsafe when any concurrent operations update the multimap, even if
       * {@code map} and the instances generated by {@code factory} are. Concurrent read operations will
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
Back to top