Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 282 for indexFor (0.07 sec)

  1. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                return StringUtil.EMPTY; // empty
            }
    
            String url = u;
            final String originalUrl = url;
    
            int idx = url.indexOf("://");
            if (idx >= 0) {
                url = url.substring(idx + 3);
            }
    
            idx = url.indexOf('/');
            if (idx >= 0) {
                url = url.substring(0, idx);
            }
    
            if (url.equals(originalUrl)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        if (occurrences == 0) {
          return count(element);
        }
        checkArgument(occurrences > 0, "occurrences cannot be negative: %s", occurrences);
        int entryIndex = backingMap.indexOf(element);
        if (entryIndex == -1) {
          backingMap.put(element, occurrences);
          size += occurrences;
          return 0;
        }
        int oldCount = backingMap.getValue(entryIndex);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      public void testIndexOf() {
        assertThat(Ints.indexOf(EMPTY, (int) 1)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, (int) 2)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY234, (int) 1)).isEqualTo(-1);
        assertThat(Ints.indexOf(new int[] {(int) -1}, (int) -1)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, (int) 2)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, (int) 3)).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Longs.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Longs.indexOf(ARRAY234, new long[] {(long) 2, (long) 3})).isEqualTo(0);
        assertThat(Longs.indexOf(ARRAY234, new long[] {(long) 3, (long) 4})).isEqualTo(1);
        assertThat(Longs.indexOf(ARRAY234, new long[] {(long) 3})).isEqualTo(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingList.java

      }
    
      @Override
      @ParametricNullness
      public E get(int index) {
        return delegate().get(index);
      }
    
      @Override
      public int indexOf(@CheckForNull Object element) {
        return delegate().indexOf(element);
      }
    
      @Override
      public int lastIndexOf(@CheckForNull Object element) {
        return delegate().lastIndexOf(element);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.indexOf(ARRAY_TRUE, new boolean[0])).isEqualTo(0);
      }
    
      public void testIndexOf_arrays() {
        assertThat(Booleans.indexOf(EMPTY, false)).isEqualTo(-1);
        assertThat(Booleans.indexOf(ARRAY_FALSE, true)).isEqualTo(-1);
        assertThat(Booleans.indexOf(ARRAY_FALSE_FALSE, true)).isEqualTo(-1);
        assertThat(Booleans.indexOf(ARRAY_FALSE, false)).isEqualTo(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

                    userInfo = URLDecoder.decode(userInfo);
                    int index = userInfo.indexOf(':');
                    user = (index != -1) ? userInfo.substring(0, index) : userInfo;
                    if (index != -1) password = userInfo.substring(index + 1);
                    index = user.indexOf('\\');
                    if (index == -1) index = user.indexOf('/');
                    domain = (index != -1) ? user.substring(0, index) : domain;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 20.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Booleans.java

       *     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) {
        for (int i = start; i < end; i++) {
          if (array[i] == target) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Booleans.java

       *     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) {
        for (int i = start; i < end; i++) {
          if (array[i] == target) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            assertThat(list.indexOf(null), is(0));
            assertThat(list.indexOf("1"), is(1));
            assertThat(list.indexOf("2"), is(2));
            assertThat(list.indexOf("3"), is(3));
            assertThat(list.indexOf("4"), is(-1));
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top