Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for asImmutableList (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top