Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,627 for indexOf (0.11 sec)

  1. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.indexOf(EMPTY, EMPTY)).isEqualTo(0);
        assertThat(Floats.indexOf(ARRAY234, EMPTY)).isEqualTo(0);
        assertThat(Floats.indexOf(EMPTY, ARRAY234)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Floats.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/DoublesTest.java

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

        assertThat(Floats.indexOf(EMPTY, EMPTY)).isEqualTo(0);
        assertThat(Floats.indexOf(ARRAY234, EMPTY)).isEqualTo(0);
        assertThat(Floats.indexOf(EMPTY, ARRAY234)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Floats.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. 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)
  7. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      @Override
      @CheckForNull
      public E higher(E element) {
        return forward.lower(element);
      }
    
      @Override
      int indexOf(@CheckForNull 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SortedListsTest.java

          int answer,
          KeyPresentBehavior presentBehavior,
          KeyAbsentBehavior absentBehavior) {
        switch (presentBehavior) {
          case FIRST_PRESENT:
            if (list.contains(key)) {
              assertEquals(list.indexOf(key), answer);
              return;
            }
            break;
          case LAST_PRESENT:
            if (list.contains(key)) {
              assertEquals(list.lastIndexOf(key), answer);
              return;
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top