Home | History | Annotate | Download | only in collect

Lines Matching defs:of

6  * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35 * <p>Its iterator orders elements according to the first appearance of the
37 * multiset contains multiple instances of an element, those instances are
55 new RegularImmutableMultiset<Object>(ImmutableMap.<Object, Integer>of(), 0);
61 public static <E> ImmutableMultiset<E> of() {
72 public static <E> ImmutableMultiset<E> of(E element) {
83 public static <E> ImmutableMultiset<E> of(E e1, E e2) {
94 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3) {
105 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4) {
116 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4, E e5) {
127 public static <E> ImmutableMultiset<E> of(
143 * <p>The multiset is ordered by the first occurrence of each element. For
147 * @throws NullPointerException if any of {@code elements} is null
157 * <p>The multiset is ordered by the first occurrence of each element. For
169 * @throws NullPointerException if any of {@code elements} is null
212 return of();
221 * <p>The multiset is ordered by the first occurrence of each element. For
226 * @throws NullPointerException if any of {@code elements} is null
340 return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet();
396 // TODO(cpovirk): try making all copies of this method @GwtIncompatible instead
504 * Adds a number of occurrences of an element to this {@code
508 * @param occurrences the number of occurrences of the element to add. May
514 * occurrences of the element
522 * Adds or removes the necessary occurrences of an element such that the
525 * @param element the element to add or remove occurrences of
526 * @param count the desired count of the element in this multiset
537 * Adds each element of {@code elements} to the {@code ImmutableMultiset}.
550 * Adds each element of {@code elements} to the {@code ImmutableMultiset}.
571 * Adds each element of {@code elements} to the {@code ImmutableMultiset}.
585 * of the {@code Builder}.