Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 282 for indexFor (0.06 sec)

  1. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

          return new RegularImmutableSortedSet<>(
              elements.subList(newFromIndex, newToIndex), comparator);
        } else {
          return emptySet(comparator);
        }
      }
    
      @Override
      int indexOf(@CheckForNull Object target) {
        if (target == null) {
          return -1;
        }
        int position;
        try {
          position = Collections.binarySearch(elements, target, unsafeComparator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertTrue(list.contains("the"));
        assertEquals(2, list.indexOf("the"));
        assertEquals(2, list.lastIndexOf("the"));
        assertFalse(list.contains("dog"));
        assertEquals(-1, list.indexOf("dog"));
        assertEquals(-1, list.lastIndexOf("dog"));
        assertFalse(list.contains("chicken"));
        assertEquals(-1, list.indexOf("chicken"));
        assertEquals(-1, list.lastIndexOf("chicken"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  3. src/main/webapp/js/admin/bootstrap.min.js

    ct.keys(e),a=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var i=a[t],s=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var l=[].slice.call(i.attributes),r=[].concat(e["*"]||[],e[s]||[]);l.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===St.indexOf(n)||Boolean(Nt.test(t.nodeValue)||Dt.test(t.nodeValue));for(var i=e.filter((function(t){return t instanceof RegExp})),o=...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        List<E> expected = copyToList(getSampleElements());
        expected.addAll(index, elements);
        expectContents(expected);
      }
    
      /*
       * TODO: if we're testing a list, we could check indexOf(). (Doing it in
       * AbstractListTester isn't enough because many tests that run on lists don't
       * extends AbstractListTester.) We could also iterate over all elements to
       * verify absence
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DfsImpl.java

                return;
            }
    
            if ( log.isDebugEnabled() ) {
                log.debug("Inserting referral for " + path);
            }
    
            int s1 = path.indexOf('\\', 1);
            int s2 = path.indexOf('\\', s1 + 1);
    
            if ( s1 < 0 || s2 < 0 ) {
                log.error("Invalid UNC path " + path);
                return;
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      }
      for (a in this) {
        for (b in other) {
          if (comparator.compare(a, b) == 0) {
            return true
          }
        }
      }
      return false
    }
    
    internal fun Array<String>.indexOf(
      value: String,
      comparator: Comparator<String>,
    ): Int = indexOfFirst { comparator.compare(it, value) == 0 }
    
    @Suppress("UNCHECKED_CAST")
    internal fun Array<String>.concat(value: String): Array<String> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

            }
    
            if (sb.length() > 0) {
                list.add(sb.toString());
            }
    
            return list;
        }
    
        private String unescape(final String s) {
            if (s.indexOf('\\') >= 0) {
                final StringBuilder sb = new StringBuilder();
                for (int i = 0; i < s.length(); i++) {
                    final char ch = s.charAt(i);
                    if (ch == '\\' && i < s.length() - 1) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(1, Iterators.indexOf(iterator, equalTo("mo")));
        assertEquals("jack", iterator.next());
        assertFalse(iterator.hasNext());
      }
    
      public void testIndexOf_consumedDataWithDuplicates() {
        Iterator<String> iterator = Lists.newArrayList("manny", "mo", "mo", "jack").iterator();
        assertEquals(1, Iterators.indexOf(iterator, equalTo("mo")));
        assertEquals("mo", iterator.next());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/Kerb5Authenticator.java

         *      byte[], boolean)
         */
        @Override
        public SSPContext createContext ( CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning ) throws SmbException {
            if ( host.indexOf('.') < 0 && host.toUpperCase(Locale.ROOT).equals(host) ) {
                // this is not too good, probably should better pass the address and check that it is a netbios one.
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

                return StringUtil.EMPTY; // empty
            }
    
            if (url.startsWith("file:////")) {
                final String value = decodeUrlAsName(url.substring(9), true);
                final int pos = value.indexOf('/');
                if (pos > 0) {
                    return value.substring(0, pos);
                }
                if (pos == -1) {
                    return value;
                }
                return "localhost";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top