Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 160 for Snippet (0.03 sec)

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

      }
    
      /**
       * A builder for creating immutable multiset instances, especially {@code public static final}
       * multisets ("constant multisets"). Example:
       *
       * {@snippet :
       * public static final ImmutableSortedMultiset<Bean> BEANS =
       *     new ImmutableSortedMultiset.Builder<Bean>(colorComparator())
       *         .addCopies(Bean.COCOA, 4)
       *         .addCopies(Bean.GARDEN, 6)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * thread was holding a lock, the listener may deadlock or break lock isolation.
       *
       * <p>This instance is equivalent to:
       *
       * {@snippet :
       * final class DirectExecutor implements Executor {
       *   public void execute(Runnable r) {
       *     r.run();
       *   }
       * }
       * }
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

        checkNonnegative(expectedSize, "expectedSize");
        return new Builder<>(expectedSize);
      }
    
      /**
       * A builder for creating {@code ImmutableSet} instances. Example:
       *
       * {@snippet :
       * static final ImmutableSet<Color> GOOGLE_COLORS =
       *     ImmutableSet.<Color>builder()
       *         .addAll(WEBSAFE_COLORS)
       *         .add(new Color(0, 191, 255))
       *         .build();
       * }
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 07 16:09:47 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

        return new ImmutableList.Builder<>(expectedSize);
      }
    
      /**
       * A builder for creating immutable list instances, especially {@code public static final} lists
       * ("constant lists"). Example:
       *
       * {@snippet :
       * public static final ImmutableList<Color> GOOGLE_COLORS =
       *     new ImmutableList.Builder<Color>()
       *         .addAll(WEBSAFE_COLORS)
       *         .add(new Color(0, 191, 255))
       *         .build();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 18:35:28 UTC 2025
    - 43.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/net/MediaType.java

       *   <li>All of the parameters present in the argument are present in this instance.
       * </ol>
       *
       * <p>For example:
       *
       * {@snippet :
       * PLAIN_TEXT_UTF_8.is(PLAIN_TEXT_UTF_8) // true
       * PLAIN_TEXT_UTF_8.is(HTML_UTF_8) // false
       * PLAIN_TEXT_UTF_8.is(ANY_TYPE) // true
       * PLAIN_TEXT_UTF_8.is(ANY_TEXT_TYPE) // true
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 02 01:46:40 UTC 2025
    - 48K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterables.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/net/MediaType.java

       *   <li>All of the parameters present in the argument are present in this instance.
       * </ol>
       *
       * <p>For example:
       *
       * {@snippet :
       * PLAIN_TEXT_UTF_8.is(PLAIN_TEXT_UTF_8) // true
       * PLAIN_TEXT_UTF_8.is(HTML_UTF_8) // false
       * PLAIN_TEXT_UTF_8.is(ANY_TYPE) // true
       * PLAIN_TEXT_UTF_8.is(ANY_TEXT_TYPE) // true
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 02 01:46:40 UTC 2025
    - 48K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      /**
       * A builder for creating immutable sorted map instances, especially {@code public static final}
       * maps ("constant maps"). Example:
       *
       * {@snippet :
       * static final ImmutableSortedMap<Integer, String> INT_TO_WORD =
       *     new ImmutableSortedMap.Builder<Integer, String>(Ordering.natural())
       *         .put(1, "one")
       *         .put(2, "two")
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterators.java

       * iteration, and hence return the same object each time. A subsequent call to {@code next} is
       * guaranteed to return the same object again. For example:
       *
       * {@snippet :
       * PeekingIterator<String> peekingIterator =
       *     Iterators.peekingIterator(Iterators.forArray("a", "b"));
       * String a1 = peekingIterator.peek(); // returns "a"
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 12:42:11 UTC 2025
    - 51.4K bytes
    - Viewed (0)
Back to top