Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 340 for indexFor (0.06 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

         * least one byte left to read.
         */
        private fun currentPartBytesRemaining(maxByteCount: Long): Long {
          val toIndex = minOf(source.buffer.size, maxByteCount) + 1L
          val boundaryIndex =
            source.indexOf(
              bytes = crlfDashDashBoundary,
              fromIndex = 0L,
              toIndex = toIndex,
            )
          return when {
            boundaryIndex != -1L -> boundaryIndex
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

        val socketOrderedByDefaults =
          handshakeEnabledCipherSuites.sortedBy { ConnectionSpec.MODERN_TLS.cipherSuitesAsString!!.indexOf(it) }
    
        assertThat(handshakeEnabledCipherSuites).containsExactly(
          *socketOrderedByDefaults.toTypedArray(),
        )
      }
    
      @Test
      fun advertisedOrderInRestricted() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Sep 16 07:21:43 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        List<E> expected = copyToList(getSampleElements());
        expected.addAll(index, elements);
        expectContents(expected);
      }
    
      /*
       * TODO: if we're testing a list, we could check indexOf(). (Doing it in
       * AbstractListTester isn't enough because many tests that run on lists don't
       * extends AbstractListTester.) We could also iterate over all elements to
       * verify absence
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Lists.java

        private final String string;
    
        StringAsImmutableList(String string) {
          this.string = string;
        }
    
        @Override
        public int indexOf(@Nullable Object object) {
          return (object instanceof Character) ? string.indexOf((Character) object) : -1;
        }
    
        @Override
        public int lastIndexOf(@Nullable Object object) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.5K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                      public List<String> order(List<String> insertionOrder) {
                        List<String> order = new ArrayList<>();
                        for (String s : insertionOrder) {
                          int index = order.indexOf(s);
                          if (index == -1) {
                            order.add(s);
                          } else {
                            order.add(index, s);
                          }
                        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/collection/ArrayMap.java

        @Override
        public boolean containsValue(final Object value) {
            return indexOf(value) >= 0;
        }
    
        /**
         * Returns the index for the specified value.
         *
         * @param value
         *            the value
         * @return the index for the value, or {@literal -1} if the value is not contained
         */
        public int indexOf(final Object value) {
            if (value != null) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java

            for (int i = parser.getAttributeCount() - 1; i >= 0; i--) {
                String name = parser.getAttributeName(i);
                String value = parser.getAttributeValue(i);
    
                if (name.indexOf(':') >= 0) {
                    // just ignore attributes with non-default namespace (for example: xmlns:xsi)
                } else {
                    checkUnknownAttribute(parser, name, tagName, strict);
                }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/opensearch/log/allcommon/EsAbstractBehavior.java

                parent.add(index, element);
            }
    
            public E remove(final int index) {
                return parent.remove(index);
            }
    
            public int indexOf(final Object o) {
                return parent.indexOf(o);
            }
    
            public int lastIndexOf(final Object o) {
                return parent.lastIndexOf(o);
            }
    
            public ListIterator<E> listIterator() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 26.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/util/SecureKeyManager.java

            // Group archived keys by session
            for (String key : sessionKeys.keySet()) {
                if (key.contains(".v")) {
                    String baseSession = key.substring(0, key.indexOf(".v"));
                    sessionArchives.computeIfAbsent(baseSession, k -> new java.util.ArrayList<>()).add(key);
                }
            }
    
            // Remove old versions
            int removed = 0;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        return intersectionInCurrentDomain(Range.downTo(fromElement, BoundType.forBoolean(inclusive)));
      }
    
      @GwtIncompatible // not used by GWT emulation
      @Override
      int indexOf(@Nullable Object target) {
        if (!contains(target)) {
          return -1;
        }
        // The cast is safe because of the contains check—at least for any reasonable Comparable class.
        @SuppressWarnings("unchecked")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.3K bytes
    - Click Count (0)
Back to Top