Returns an immutable sorted set containing the given elements sorted by their natural ordering. When multiple elements are equivalent according to Comparable#compareTo, only the first one specified is included. @throws NullPointerException if any of elements is null @since 3.0
(E[] elements)
| 171 | |
| 172 | |
| 173 | public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(E[] elements) { |
| 174 | return construct(Ordering.natural(), elements.length, elements.clone()); |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * Returns an immutable sorted set containing the given elements sorted by |
no test coverage detected