Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 737 for indexed (0.03 sec)

  1. android/guava/src/com/google/common/primitives/Booleans.java

       * @return the least index {@code i} for which {@code array[i] == target}, or {@code -1} if no
       *     such index exists.
       */
      public static int indexOf(boolean[] array, boolean target) {
        return indexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int indexOf(boolean[] array, boolean target, int start, int end) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Booleans.java

       * @return the least index {@code i} for which {@code array[i] == target}, or {@code -1} if no
       *     such index exists.
       */
      public static int indexOf(boolean[] array, boolean target) {
        return indexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int indexOf(boolean[] array, boolean target, int start, int end) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            comparable = new ComparableVersion(version);
    
            int index = version.indexOf('-');
    
            String part1;
            String part2 = null;
    
            if (index < 0) {
                part1 = version;
            } else {
                part1 = version.substring(0, index);
                part2 = version.substring(index + 1);
            }
    
            if (part2 != null) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java

            // We can't directly assert these values on the superclass fields without reflection or a testable superclass.
            // For 100% coverage, we'd need to ensure the superclass constructor is indeed called with these values.
            // However, given the current structure, testing the fields set by MsrpcEnumerateAliasesInDomain itself is the primary focus.
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        assertThat(iia.indexOf(1)).isEqualTo(0);
        assertThat(iia.indexOf(8)).isEqualTo(5);
        assertThat(iia.indexOf(4)).isEqualTo(-1);
        assertThat(ImmutableLongArray.of(13).indexOf(13)).isEqualTo(0);
        assertThat(ImmutableLongArray.of().indexOf(21)).isEqualTo(-1);
        assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0);
      }
    
      public void testLastIndexOf() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

                    buf.append(ch);
                }
            }
            if (buf.indexOf("yy") == -1) {
                final int pos = buf.indexOf("y");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "yy");
                }
            }
            if (buf.indexOf("MM") == -1) {
                final int pos = buf.indexOf("M");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "MM");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

            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);
              }
            }
            return order;
          }
        };
      }
    
      public void testCreate() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      }
    
      @Override
      public @Nullable E higher(E element) {
        return forward.lower(element);
      }
    
      @Override
      int indexOf(@Nullable Object target) {
        int index = forward.indexOf(target);
        if (index == -1) {
          return index;
        } else {
          return size() - 1 - index;
        }
      }
    
      @Override
      boolean isPartialView() {
        return forward.isPartialView();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Lists.java

        }
    
        private int reverseIndex(int index) {
          int size = size();
          checkElementIndex(index, size);
          return (size - 1) - index;
        }
    
        private int reversePosition(int index) {
          int size = size();
          checkPositionIndex(index, size);
          return size - index;
        }
    
        @Override
        public void add(int index, @ParametricNullness T element) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 42.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        @Override
        public Range<C> get(int index) {
          checkElementIndex(index, size);
    
          Cut<C> lowerBound;
          if (positiveBoundedBelow) {
            lowerBound = (index == 0) ? Cut.belowAll() : ranges.get(index - 1).upperBound;
          } else {
            lowerBound = ranges.get(index).upperBound;
          }
    
          Cut<C> upperBound;
          if (positiveBoundedAbove && index == size - 1) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
Back to top