Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,627 for indexOf (0.05 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java

        array[getNumElements() / 2] = e0();
        collection = getSubjectGenerator().create(array);
        assertEquals(
            "indexOf(duplicate) should return index of first occurrence", 0, getList().indexOf(e0()));
      }
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-07-24 20:12
    - 2.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 2, (byte) 3})).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 3, (byte) 4})).isEqualTo(1);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 3})).isEqualTo(1);
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-19 02:56
    - 17.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

                (K k, V v) -> {
                  int index = keys().asList().indexOf(k);
                  return values().asList().get(index + 1);
                });
        List<Entry<K, V>> expectedEntries = new ArrayList<>();
        for (Entry<K, V> entry : getSampleEntries()) {
          int index = keys().asList().indexOf(entry.getKey());
          expectedEntries.add(Helpers.mapEntry(entry.getKey(), values().asList().get(index + 1)));
        }
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-31 14:51
    - 4.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedAsList.java

        return delegateCollection().comparator();
      }
    
      // Override indexOf() and lastIndexOf() to be O(log N) instead of O(N).
    
      @GwtIncompatible // ImmutableSortedSet.indexOf
      // TODO(cpovirk): consider manual binary search under GWT to preserve O(log N) lookup
      @Override
      public int indexOf(@CheckForNull Object target) {
        int index = delegateCollection().indexOf(target);
    
    Registered: 2024-11-01 12:43
    - Last Modified: 2023-11-30 21:54
    - 3.6K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/plugins/form-validator/html5.js

    ber":b.push("number");var i=e.attr("max"),j=e.attr("min"),k=e.attr("step");j||i?(j||(j="0"),i||(i="9007199254740992"),k||(k="1"),h["data-validation-allowing"]="range["+j+";"+i+"]",0!==j.indexOf("-")&&0!==i.indexOf("-")||(h["data-validation-allowing"]+=",negative"),(j.indexOf(".")>-1||i.indexOf(".")>-1||k.indexOf(".")>-1)&&(h["data-validation-allowing"]+=",float")):h["data-validation-allowing"]+=",float,negative"}if(e.attr("pattern")&&(b.push("custom"),h["data-validation-regexp"]=e.attr("pattern"...
    Registered: 2024-10-31 13:40
    - Last Modified: 2018-01-01 05:12
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/query/parser/QueryParser.java

                final int indexOf = field.indexOf(':');
                if (indexOf < 0) {
                    return new Pair<>(field, null);
                }
                final String indexField = indexOf == 0 ? defaultField : field.substring(0, indexOf);
                final String extensionKey = field.substring(indexOf + 1);
                return new Pair<>(indexField, extensionKey);
            }
        }
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-10-11 21:20
    - 5.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 2, (byte) 3})).isEqualTo(0);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 3, (byte) 4})).isEqualTo(1);
        assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 3})).isEqualTo(1);
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-19 02:56
    - 17.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertThat(ArrayUtil.indexOf(array, "222"), is(1));
            assertThat(ArrayUtil.indexOf(array, "222", 2), is(3));
            assertThat(ArrayUtil.indexOf(array, new Object()), is(-1));
            assertThat(ArrayUtil.indexOf(array, null), is(-1));
            array[1] = null;
            assertThat(ArrayUtil.indexOf(array, null), is(1));
        }
    
        /**
         * @throws Exception
         */
    Registered: 2024-11-01 20:58
    - Last Modified: 2024-03-07 01:59
    - 10.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/KuromojiCSVUtil.java

            String result = original;
    
            // Unquote
            if (result.indexOf('\"') >= 0) {
                final Matcher m = QUOTE_REPLACE_PATTERN.matcher(original);
                if (m.matches()) {
                    result = m.group(1);
                }
    
                // Unescape
                if (result.indexOf(ESCAPED_QUOTE) >= 0) {
                    result = result.replace(ESCAPED_QUOTE, "\"");
                }
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-02-22 01:37
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(iia.indexOf(1)).isEqualTo(0);
        assertThat(iia.indexOf(8)).isEqualTo(5);
        assertThat(iia.indexOf(4)).isEqualTo(-1);
        assertThat(ImmutableDoubleArray.of(13).indexOf(13)).isEqualTo(0);
        assertThat(ImmutableDoubleArray.of().indexOf(21)).isEqualTo(-1);
        assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0);
      }
    
      public void testIndexOf_specialValues() {
    Registered: 2024-11-01 12:43
    - Last Modified: 2024-10-25 18:05
    - 21.2K bytes
    - Viewed (0)
Back to top