Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 193 for toList (0.04 seconds)

  1. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testToList() {
        assertEquals(Lists.newArrayList(1, 2, 3, 4), fluent(1, 2, 3, 4).toList());
      }
    
      public void testToList_empty() {
        assertTrue(fluent().toList().isEmpty());
      }
    
      public void testToSortedList_withComparator() {
        assertEquals(
            Lists.newArrayList(4, 3, 2, 1),
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 30.5K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java

                return Collections.emptyList();
            }
            return Arrays.stream(excludes.split(","))
                    .map(String::trim)
                    .filter(s -> !s.isEmpty())
                    .collect(Collectors.toList());
        }
    
        private ValidationReportLevel validationReportLevel(RepositorySystemSession session) {
            return (ValidationReportLevel) session.getData()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:32 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            }
    
            fun assertHasErrors(vararg errors: List<String>) {
                assertHasErrors(*errors.toList().flatten().toTypedArray())
            }
    
            fun assertHasErrors(vararg errorWithDetail: Pair<String, List<String>>) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 18K bytes
    - Click Count (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

         * the following code can be used:
         *
         * <pre>{@literal
         * List<SourceRoot> enabledRoots = project.getSourceRoots()
         *         .stream().filter(SourceRoot::enabled).toList();
         * }</pre>
         *
         * The iteration order is the order in which the sources are declared in the POM file.
         *
         * @param project the project for which to get the source roots
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jan 30 23:29:13 GMT 2025
    - 12K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt

          @JvmField var headerCount = 0
    
          @JvmField var dynamicTableByteCount = 0
    
          fun getAndResetHeaderList(): List<Header> {
            val result = headerList.toList()
            headerList.clear()
            return result
          }
    
          fun maxDynamicTableByteCount(): Int = maxDynamicTableByteCount
    
          private fun adjustDynamicTableByteCount() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Lists.java

       * <p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
       * ImmutableList#copyOf(Iterable)} instead. (Or, change {@code elements} to be a {@link
       * FluentIterable} and call {@code elements.toList()}.)
       *
       * <p><b>Note:</b> if {@code elements} is a {@link Collection}, you don't need this method. Use
       * the {@code ArrayList} {@linkplain ArrayList#ArrayList(Collection) constructor} directly, taking
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 42.6K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java

                Element buildElement = root.child("build").orElse(null);
                assertNotNull(buildElement, "Build element should exist");
    
                List<Element> buildChildren = buildElement.children().toList();
    
                // Find the indices of pluginManagement and plugins
                int pluginManagementIndex = -1;
                int pluginsIndex = -1;
    
                for (int i = 0; i < buildChildren.size(); i++) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  8. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              chain: Array<out X509Certificate>,
              authType: String,
              hostname: String,
            ): List<X509Certificate> {
              withHostCalled = true
              return chain.toList()
            }
    
            override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf()
          }
    
        val sslContext =
          Platform.get().newSSLContext().apply {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

          "take plan 1",
          "plan 0 cancel",
          "plan 0 TCP connect canceled",
        )
      }
    
      private fun assertEvents(vararg expected: String) {
        val actual = generateSequence { routePlanner.events.poll() }.toList()
        assertThat(actual).containsExactly(*expected)
      }
    
      private val Int.ms: Long
        get() = this * 1_000_000L
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 20.9K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      static class WithStreamParameter {
        private final List<?> list;
    
        // This should be ignored.
        public WithStreamParameter(Stream<?> s, String str) {
          this.list = s.collect(Collectors.toList());
          checkNotNull(str);
        }
      }
    
      static class UsesReferentialEquality {
        private final ReferentialEquality s;
    
        public UsesReferentialEquality(ReferentialEquality s) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 36.3K bytes
    - Click Count (0)
Back to Top