Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 827 for indexOf (0.2 sec)

  1. 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);
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  2. 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()));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  3. 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()));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/Base64.java

            int block;
            int i = 0;
            int index = 0;
            while (i < length) {
                block = (ALPHABET.indexOf(string.charAt(i++)) & 0xff) << 18 |
                        (ALPHABET.indexOf(string.charAt(i++)) & 0xff) << 12 |
                        (ALPHABET.indexOf(string.charAt(i++)) & 0xff) << 6 |
                        (ALPHABET.indexOf(string.charAt(i++)) & 0xff);
                buffer[index++] = (byte) (block >>> 16);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  5. 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)));
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/UserAgentHelper.java

                    if (userAgent != null) {
                        if (userAgent.indexOf("MSIE") >= 0 || userAgent.indexOf("Trident") >= 0) {
                            uaType = UserAgentType.IE;
                        } else if (userAgent.indexOf("Firefox") >= 0) {
                            uaType = UserAgentType.FIREFOX;
                        } else if (userAgent.indexOf("Chrome") >= 0) {
                            uaType = UserAgentType.CHROME;
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/query/parser/QueryParser.java

                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);
            }
        }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. 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"...
    JavaScript
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 2.6K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java

      ForwardingImmutableList() {}
    
      abstract List<E> delegateList();
    
      public int indexOf(@Nullable Object object) {
        return delegateList().indexOf(object);
      }
    
      public int lastIndexOf(@Nullable Object object) {
        return delegateList().lastIndexOf(object);
      }
    
      public E get(int index) {
        return delegateList().get(index);
      }
    
      public ImmutableList<E> subList(int fromIndex, int toIndex) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ForwardingList.java

      @Override
      public void add(int index, @ParametricNullness E element) {
        delegate().add(index, element);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean addAll(int index, Collection<? extends E> elements) {
        return delegate().addAll(index, elements);
      }
    
      @Override
      @ParametricNullness
      public E get(int index) {
        return delegate().get(index);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top