Lines Matching full:code
35 * A high-performance, immutable {@code Set} with reliable, user-specified
41 * for {@code public static final} sets ("constant sets") and also lets you
44 * <p><b>Warning:</b> Like most sets, an {@code ImmutableSet} will not function
72 * and maintainability of your code.
86 * maintainability of your code.
146 * @throws NullPointerException if any of {@code elements} is null
164 * sized inappropriately). This method iterates over {@code elements} at most
167 * <p>Note that if {@code s} is a {@code Set<String>}, then {@code
168 * ImmutableSet.copyOf(s)} returns an {@code ImmutableSet<String>} containing
169 * each of the strings in {@code s}, while {@code ImmutableSet.of(s)} returns
170 * a {@code ImmutableSet<Set<String>>} containing one element (the given set
173 * <p><b>Note:</b> Despite what the method name suggests, if {@code elements}
174 * is an {@code ImmutableSet} (but not an {@code ImmutableSortedSet}), no copy
177 * @throws NullPointerException if any of {@code elements} is null
194 * @throws NullPointerException if any of {@code elements} is null
218 /** Returns {@code true} if the {@code hashCode()} method runs quickly. */
449 * {@code public static final} sets ("constant sets").
452 * <pre>{@code
474 * Adds {@code element} to the {@code ImmutableSet}. If the {@code
475 * ImmutableSet} already contains {@code element}, then {@code add} has no
479 * @return this {@code Builder} object
480 * @throws NullPointerException if {@code element} is null
488 * Adds each element of {@code elements} to the {@code ImmutableSet},
492 code Builder} object
493 * @throws NullPointerException if {@code elements} is null or contains a
504 * Adds each element of {@code elements} to the {@code ImmutableSet},
507 * @param elements the {@code Iterable} to add to the {@code ImmutableSet}
508 * @return this {@code Builder} object
509 * @throws NullPointerException if {@code elements} is null or contains a
522 * Adds each element of {@code elements} to the {@code ImmutableSet},
525 * @param elements the elements to add to the {@code ImmutableSet}
526 * @return this {@code Builder} object
527 * @throws NullPointerException if {@code elements} is null or contains a
536 * Returns a newly-created {@code ImmutableSet} based on the contents of
537 * the {@code Builder}.