Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for toImmutableList (0.19 sec)

  1. guava-tests/test/com/google/common/io/CharSourceTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.collect.ImmutableList.toImmutableList;
    import static com.google.common.io.TestOption.CLOSE_THROWS;
    import static com.google.common.io.TestOption.OPEN_THROWS;
    import static com.google.common.io.TestOption.READ_THROWS;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> {@code ImmutableList.copyOf(stream.iterator())}, or pass
       * {@link ImmutableList#toImmutableList} to {@code stream.collect()}.
       *
       * @throws NullPointerException if any element is {@code null}
       * @since 14.0 (since 12.0 as {@code toImmutableList()}).
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
      public final ImmutableList<@NonNull E> toList() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.io.IOException
    import java.util.UUID
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.internal.toImmutableList
    import okio.Buffer
    import okio.BufferedSink
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    
    /**
     * An [RFC 2387][rfc_2387]-compliant request body.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

    public abstract class ImmutableList<E> extends ImmutableCollection<E>
        implements List<E>, RandomAccess {
    
      ImmutableList() {}
    
      public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return CollectCollectors.toImmutableList();
      }
    
      // Casting to any type is safe because the list will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableList<E> of() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 11K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableList.java

      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      @Beta // TODO: b/288085449 - Remove.
      public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return CollectCollectors.toImmutableList();
      }
    
      /**
       * Returns the empty immutable list. This list behaves and performs comparably to {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

       * ImmutableList}, in encounter order.
       *
       * @since 21.0
       */
      public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return CollectCollectors.toImmutableList();
      }
    
      /**
       * Returns the empty immutable list. This list behaves and performs comparably to {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  7. guava-tests/test/com/google/common/base/SplitterTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.collect.ImmutableList.toImmutableList;
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

       * proper sequence.
       *
       * <p><b>{@code Stream} equivalent:</b> pass {@link ImmutableList#toImmutableList} to {@code
       * stream.collect()}.
       *
       * @throws NullPointerException if any element is {@code null}
       * @since 14.0 (since 12.0 as {@code toImmutableList()}).
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CollectCollectors.java

                  ImmutableRangeSet.Builder::combine,
                  ImmutableRangeSet.Builder::build);
    
      // Lists
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return (Collector) TO_IMMUTABLE_LIST;
      }
    
      // Sets
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    internal fun Response.headersContentLength(): Long {
      return headers["Content-Length"]?.toLongOrDefault(-1L) ?: -1L
    }
    
    /** Returns an immutable copy of this. */
    internal fun <T> List<T>.toImmutableList(): List<T> {
      return Collections.unmodifiableList(toMutableList())
    }
    
    /** Returns an immutable list containing [elements]. */
    @SafeVarargs
    internal fun <T> immutableListOf(vararg elements: T): List<T> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top