Lines Matching full:code
63 * example, {@code ImmutableMultiset.of(2, 3, 1, 3)} yields a multiset with
64 * elements in the order {@code 2, 3, 3, 1}.
66 * @throws NullPointerException if any of {@code elements} is null
76 * example, {@code ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3))} yields
77 * a multiset with elements in the order {@code 2, 3, 3, 1}.
79 * <p>Note that if {@code c} is a {@code Collection<String>}, then {@code
80 * ImmutableMultiset.copyOf(c)} returns an {@code ImmutableMultiset<String>}
81 * containing each of the strings in {@code c}, while
82 * {@code ImmutableMultiset.of(c)} returns an
83 * {@code ImmutableMultiset<Collection<String>>} containing one element (the
86 * <p><b>Note:</b> Despite what the method name suggests, if {@code elements}
87 * is an {@code ImmutableMultiset}, no copy will actually be performed, and
90 * @throws NullPointerException if any of {@code elements} is null
135 * {@code ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3).iterator())}
136 * yields a multiset with elements in the order {@code 2, 3, 3, 1}.
138 * @throws NullPointerException if any of {@code elements} is null
150 // These constants allow the deserialization code to set final fields. This
379 * {@code public static final} multisets ("constant multisets").
382 * <pre> {@code
405 * Adds {@code element} to the {@code ImmutableMultiset}.
408 * @return this {@code Builder} object
409 * @throws NullPointerException if {@code element} is null
417 * Adds a number of occurrences of an element to this {@code
423 * @return this {@code Builder} object
424 * @throws NullPointerException if {@code element} is null
425 * @throws IllegalArgumentException if {@code occurrences} is negative, or
440 * @return this {@code Builder} object
441 * @throws NullPointerException if {@code element} is null
442 * @throws IllegalArgumentException if {@code count} is negative
450 * Adds each element of {@code elements} to the {@code ImmutableMultiset}.
453 * @return this {@code Builder} object
454 * @throws NullPointerException if {@code elements} is null or contains a
463 * Adds each element of {@code elements} to the {@code ImmutableMultiset}.
465 * @param elements the {@code Iterable} to add to the {@code
467 * @return this {@code Builder} object
468 * @throws NullPointerException if {@code elements} is null or contains a
485 * Adds each element of {@code elements} to the {@code ImmutableMultiset}.
487 * @param elements the elements to add to the {@code ImmutableMultiset}
488 * @return this {@code Builder} object
489 * @throws NullPointerException if {@code elements} is null or contains a
498 * Returns a newly-created {@code ImmutableMultiset} based on the contents
499 * of the {@code Builder}.