- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SingletonImmutableList (0.31 sec)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
@SuppressWarnings("unchecked") public static <E> ImmutableList<E> of() { return (ImmutableList<E>) RegularImmutableList.EMPTY; } public static <E> ImmutableList<E> of(E element) { return new SingletonImmutableList<E>(checkNotNull(element)); } public static <E> ImmutableList<E> of(E e1, E e2) { return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2)); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 11K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableList.java
* preferable mainly for consistency and maintainability of your code. * * @throws NullPointerException if {@code element} is null */ public static <E> ImmutableList<E> of(E element) { return new SingletonImmutableList<>(element); } /** * Returns an immutable list containing the given elements, in order. * * @throws NullPointerException if any element is null */
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 30K bytes - Viewed (1)