- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for asImmutableList (0.05 sec)
-
android/guava/src/com/google/common/collect/ImmutableList.java
* * <p>The array must be internally created. */ static <E> ImmutableList<E> asImmutableList(Object[] elements) { return asImmutableList(elements, elements.length); } /** Views the array as an immutable list. Does not check for nulls. */ static <E> ImmutableList<E> asImmutableList(@Nullable Object[] elements, int length) { if (length == 0) { return of(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
* * <p>The array must be internally created. */ @SuppressWarnings("unchecked") // caller is reponsible for getting this right static <E> ImmutableList<E> asImmutableList(Object[] elements) { return unsafeDelegateList((List) Arrays.asList(elements)); } public static <E extends Comparable<? super E>> ImmutableList<E> sortedCopyOf( Iterable<? extends E> elements) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 11.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
* subject to change. * * @since 2.0 */ public ImmutableList<E> asList() { return isEmpty() ? ImmutableList.of() : ImmutableList.asImmutableList(toArray()); } /** * Returns {@code true} if this immutable collection's implementation contains references to * user-created objects that aren't accessible via this collection's methods. This is generally
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
* populated. */ return of(requireNonNull(dedupedElements[0])); default: return new JdkBackedImmutableSet<>( delegate, ImmutableList.asImmutableList(dedupedElements, distinct)); } } } private static int estimatedSizeForUnknownDuplication(int inputElementsIncludingAnyDuplicates) { if (inputElementsIncludingAnyDuplicates
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
// large array relative to the number of elements, so we cap the ratio. contents = Arrays.copyOf(contents, uniques); } return new RegularImmutableSortedSet<E>( ImmutableList.<E>asImmutableList(contents, uniques), comparator); } /** * Returns a builder that creates immutable sorted sets with an explicit comparator. If the
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36.8K bytes - Viewed (0)