- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for asImmutableList (0.15 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) -
android/guava/src/com/google/common/collect/RegularImmutableAsList.java
} RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) { this(delegate, ImmutableList.<E>asImmutableList(array)); } RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array, int size) { this(delegate, ImmutableList.<E>asImmutableList(array, size)); } @Override ImmutableCollection<E> delegateCollection() { return delegate; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.8K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableSortedSet.java
super(delegate); this.isSubset = isSubset; } @Override ImmutableList<E> createAsList() { return new ImmutableSortedAsList<>(this, ImmutableList.asImmutableList(toArray())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 22:23:20 UTC 2025 - 1.2K 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) -
guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java
if (!(entry instanceof Multisets.ImmutableEntry)) { entriesArray[i] = Multisets.immutableEntry(element, count); } } return new JdkBackedImmutableMultiset<>( delegateMap, ImmutableList.asImmutableList(entriesArray), size); } private JdkBackedImmutableMultiset( Map<E, Integer> delegateMap, ImmutableList<Entry<E>> entries, long size) { this.delegateMap = delegateMap; this.entries = entries;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Apr 08 13:05:15 UTC 2025 - 3.2K 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)