Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

      @Test
      @Throws(Exception::class)
      fun webSocketConnectionIsReleased() {
        // This test assumes HTTP/1.1 pooling semantics.
        client =
          client
            .newBuilder()
            .protocols(Arrays.asList(Protocol.HTTP_1_1))
            .build()
        webServer.enqueue(
          MockResponse
            .Builder()
            .code(HttpURLConnection.HTTP_NOT_FOUND)
            .body("not found!")
            .build(),
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableBiMap.java

        @SuppressWarnings("unchecked") // we will only ever read these
        Entry<K, V>[] entries2 = (Entry<K, V>[]) entries;
        return copyOf(Arrays.asList(entries2));
      }
    
      /**
       * Returns a new builder. The generated builder is equivalent to the builder created by the {@link
       * Builder} constructor.
       */
      public static <K, V> Builder<K, V> builder() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  3. 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() {
        switch (size()) {
          case 0:
            return ImmutableList.of();
          case 1:
            return ImmutableList.of(iterator().next());
          default:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ArrayTable.java

          this.keyIndex = keyIndex;
        }
    
        @Override
        public Set<K> keySet() {
          return keyIndex.keySet();
        }
    
        K getKey(int index) {
          return keyIndex.keySet().asList().get(index);
        }
    
        abstract String getKeyRole();
    
        @ParametricNullness
        abstract V getValue(int index);
    
        @ParametricNullness
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 19:39:21 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

            }
            if (newKinds == null) {
                return kinds;
            }
    
            final List<Kind> list = new ArrayList<>(kinds.length + newKinds.length);
            list.addAll(Arrays.asList(kinds));
            for (final Kind kind : newKinds) {
                if (!list.contains(kind)) {
                    list.add(kind);
                }
            }
            return list.toArray(new Kind[list.size()]);
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
  10. 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)
Back to top