Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 53 for singletonList (0.16 sec)

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

    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.emptySet;
    import static java.util.Collections.singleton;
    import static java.util.Collections.singletonList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Function;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

    import static com.google.common.collect.testing.google.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Arrays.asList;
    import static java.util.Collections.nCopies;
    import static java.util.Collections.singletonList;
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.BoundType;
    import com.google.common.collect.Iterators;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_PUT;
    import static com.google.common.collect.testing.google.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Collections.singletonList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/NotifyResponseTest.java

        void testNotifyResponseChaining() {
            MockNotifyResponse response1 = new MockNotifyResponse(Collections.singletonList(mockNotifyInfo1));
            MockNotifyResponse response2 = new MockNotifyResponse(Collections.singletonList(mockNotifyInfo2));
    
            // Setup chaining
            response1.setNextResponse(response2);
    
            // Verify chaining
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

        @SuppressWarnings("rawtypes") // class literals
        @Override
        protected List<Class<? extends AbstractTester>> getTesters() {
          return Collections.<Class<? extends AbstractTester>>singletonList(MyTester.class);
        }
      }
    
      public void testLifecycle() {
        boolean[] setUp = {false};
        Runnable setUpRunnable =
            new Runnable() {
              @Override
              public void run() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

        @Test
        @DisplayName("close() clears pending element and hasNext() becomes false")
        void closeClearsNext() throws Exception {
            SmbFile parent = newParent();
            List<FileEntry> entries = Collections.singletonList(entry("one", SmbConstants.TYPE_SHARE));
            ShareEnumIterator it = new ShareEnumIterator(parent, entries.iterator(), null);
    
            assertTrue(it.hasNext());
            it.close();
            assertFalse(it.hasNext());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

        @SuppressWarnings("rawtypes") // class literals
        @Override
        protected List<Class<? extends AbstractTester>> getTesters() {
          return Collections.<Class<? extends AbstractTester>>singletonList(MyTester.class);
        }
      }
    
      public void testLifecycle() {
        boolean[] setUp = {false};
        Runnable setUpRunnable =
            new Runnable() {
              @Override
              public void run() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

    import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
    import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.singletonList;
    import static java.util.Collections.unmodifiableList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.testing.IteratorTester;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstaller.java

         *          {@code artifact} is {@code null}
         */
        default void install(Session session, ProducedArtifact artifact) {
            install(session, Collections.singletonList(artifact));
        }
    
        /**
         * @param session the repository session
         * @param artifacts Collection of {@link ProducedArtifact MavenArtifacts}
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

    /** Returns an immutable copy of this. */
    @Suppress("UNCHECKED_CAST")
    internal fun <T> List<T>.toImmutableList(): List<T> =
      when {
        this.isEmpty() -> emptyList()
        this.size == 1 -> Collections.singletonList(this[0])
        // Collection.toArray returns Object[] (covariant).
        // It is faster than creating real T[] via reflection (Arrays.copyOf).
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
Back to top