Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 470 for AsList (0.03 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

                source.addArtifact(spec);
            }
            return spec;
        }
    
        @SuppressWarnings("unchecked")
        private static Set<Artifact> createSet(Object[] x) {
            return new LinkedHashSet(Arrays.asList(x));
        }
    
        private class ArtifactSpec {
            private Artifact artifact;
    
            private Set<Artifact> dependencies = new HashSet<>();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 42.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableCollection.java

       * copying anything. The exact circumstances under which the copy is performed are undefined and
       * 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        return method.getReturnType() == boolean.class;
      }
    
      /** Determines whether the given method can throw InterruptedException. */
      private static boolean isInterruptible(Method method) {
        return Arrays.asList(method.getExceptionTypes()).contains(InterruptedException.class);
      }
    
      /** Sorts the given methods primarily by name and secondarily by number of parameters. */
      private static void sortMethods(Method[] methods) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/Hashing.java

       *
       * @since 19.0
       */
      public static HashFunction concatenating(
          HashFunction first, HashFunction second, HashFunction... rest) {
        // We can't use Lists.asList() here because there's no hash->collect dependency
        List<HashFunction> list = new ArrayList<>();
        list.add(first);
        list.add(second);
        Collections.addAll(list, rest);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                        log.debug("Have initial token " + tok);
                    }
                    if (tok.getMechanisms() != null) {
                        Set<ASN1ObjectIdentifier> mechs = new HashSet<>(Arrays.asList(tok.getMechanisms()));
                        if (!mechs.contains(NtlmContext.NTLMSSP_OID)) {
                            throw new SmbUnsupportedOperationException("Server does not support NTLM authentication");
                        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        throw new UnsupportedOperationException();
      }
    
      private <T> T pickInstance(T[] instances, T defaultValue) {
        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
      private <T> T pickInstance(Collection<T> instances, T defaultValue) {
        if (instances.isEmpty()) {
          return defaultValue;
        }
        // generateInt() is 1-based.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        throw new UnsupportedOperationException();
      }
    
      private <T> T pickInstance(T[] instances, T defaultValue) {
        return pickInstance(Arrays.asList(instances), defaultValue);
      }
    
      private <T> T pickInstance(Collection<T> instances, T defaultValue) {
        if (instances.isEmpty()) {
          return defaultValue;
        }
        // generateInt() is 1-based.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/config/BaseConfiguration.java

                // Samba woes on these
                // Smb2SessionSetupRequest + X -> INTERNAL_ERROR
                // Smb2TreeConnectRequest + IoCtl -> NETWORK_NAME_DELETED
                this.disallowCompound = new HashSet<>(Arrays.asList("Smb2SessionSetupRequest", "Smb2TreeConnectRequest"));
            }
    
            // Initialize multi-channel defaults if not set
            // Note: useMultiChannel defaults are handled by PropertyConfiguration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        setUp(protocol)
        val responseDequeuedLatches =
          Arrays.asList(
            CountDownLatch(1),
            // No synchronization for the last request, which is not canceled:
            CountDownLatch(1),
            CountDownLatch(0),
          )
        val requestCanceledLatches =
          Arrays.asList(
            CountDownLatch(1),
            CountDownLatch(1),
            CountDownLatch(0),
          )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

       * elements.
       *
       * <p>To cycle over the elements {@code n} times, use the following: {@code
       * Iterables.concat(Collections.nCopies(n, Arrays.asList(elements)))}
       *
       * <p><b>Java 8+ users:</b> If passing a single element {@code e}, the {@code Stream} equivalent
       * of this method is {@code Stream.generate(() -> e)}. Otherwise, put the elements in a collection
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
Back to top