Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 278 for indexFor (1.09 seconds)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            ArtifactVersion upperBound = null;
            ArtifactVersion lowerBound = null;
    
            while (process.startsWith("[") || process.startsWith("(")) {
                int index1 = process.indexOf(')');
                int index2 = process.indexOf(']');
    
                int index = index2;
                if (index2 < 0 || index1 < index2) {
                    if (index1 >= 0) {
                        index = index1;
                    }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 19K bytes
    - Click Count (0)
  2. guava/src/com/google/common/primitives/Doubles.java

       *     such index exists.
       */
      public static int indexOf(double[] array, double target) {
        return indexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int indexOf(double[] array, double target, int start, int end) {
        for (int i = start; i < end; i++) {
          if (array[i] == target) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 27.6K bytes
    - Click Count (0)
  3. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt

                val line = it.trim()
                if (line.startsWith("\"version\"")) {
                    version = line.substring(line.indexOf("\"", 11) + 1, line.lastIndexOf("\""))
                }
                if (line.startsWith("\"buildTime\"")) {
                    var date = line.substring(line.indexOf("\"", 12) + 1, line.lastIndexOf("\""))
                    date = date.substring(0, 4) + "-" + date.substring(4, 6) + "-" + date.substring(6, 8)
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Jun 02 09:57:54 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

              if (element == null) throw NullPointerException()
              return super.contains(element)
            }
    
            override fun indexOf(element: Protocol?): Int {
              if (element == null) throw NullPointerException()
              return super.indexOf(element)
            }
          } as List<Protocol>
        val client =
          OkHttpClient
            .Builder()
            .protocols(nullHostileProtocols)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 13.4K bytes
    - Click Count (1)
  5. docs/en/docs/js/custom.js

                                delay: 0
                            });
                        } else if (line.startsWith(customPromptLiteralStart)) {
                            saveBuffer();
                            const promptStart = line.indexOf(promptLiteralStart);
                            if (promptStart === -1) {
                                console.error("Custom prompt found but no end delimiter", line)
                            }
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 22 15:11:52 GMT 2025
    - 6.3K bytes
    - Click Count (2)
  6. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            // role does not vary for Mojos.
            List<MojoDescriptor> mojos = getMojos();
    
            if (mojos != null && mojos.contains(mojoDescriptor)) {
                int indexOf = mojos.indexOf(mojoDescriptor);
    
                existing = mojos.get(indexOf);
            }
    
            if (existing != null) {
                throw new DuplicateMojoDescriptorException(
                        getGoalPrefix(),
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestBuilderTest.java

                        new String[] { "tag1" }, new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.QUERY);
            }
            suggester.indexer().index(items);
            suggester.refresh();
        }
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

      }
    
      @Override
      public @Nullable Entry<E> lastEntry() {
        return isEmpty() ? null : getEntry(length - 1);
      }
    
      @Override
      public int count(@Nullable Object element) {
        int index = elementSet.indexOf(element);
        return (index >= 0) ? getCount(index) : 0;
      }
    
      @Override
      public int size() {
        long size = cumulativeCounts[offset + length] - cumulativeCounts[offset];
        return Ints.saturatedCast(size);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/collection/SLinkedList.java

         *
         * @param element the element
         * @return true if the element is contained in the list, false otherwise
         */
        public boolean contains(final E element) {
            return indexOf(element) != -1;
        }
    
        /**
         * Removes an element from the list.
         *
         * @param element the element
         * @return true if the element was removed, false otherwise
         */
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt

       * limits.
       */
      fun encode(string: String): String? {
        var pos = 0
        val limit = string.length
        val result = Buffer()
    
        while (pos < limit) {
          var dot = string.indexOf('.', startIndex = pos)
          if (dot == -1) dot = limit
    
          if (!encodeLabel(string, pos, dot, result)) {
            // If we couldn't encode the label, give up.
            return null
          }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 8.5K bytes
    - Click Count (0)
Back to Top