Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 122 for lastIndexOf (0.09 sec)

  1. guava-tests/test/com/google/common/collect/ListsTest.java

        List<List<Integer>> actual = cartesianProduct(list(1, 1), list(2, 3));
        assertThat(actual.lastIndexOf(list(1, 2))).isEqualTo(2);
        assertThat(actual.lastIndexOf(list(1, 3))).isEqualTo(3);
        assertThat(actual.lastIndexOf(list(1, 1))).isEqualTo(-1);
    
        assertThat(actual.lastIndexOf(list(1))).isEqualTo(-1);
        assertThat(actual.lastIndexOf(list(1, 1, 1))).isEqualTo(-1);
      }
    
      public void testCartesianProduct_unrelatedTypes() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

                    final String className = entryName.substring(startPos, entryName.length() - CLASS_SUFFIX.length()).replace('/', '.');
                    final int pos = className.lastIndexOf('.');
                    final String packageName = pos == -1 ? null : className.substring(0, pos);
                    final String shortClassName = pos == -1 ? className : className.substring(pos + 1);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

                }
            }
            return null;
        }
    
        private static String getDateString(final String text) {
            for (final String dow : DAY_OF_WEEK) {
                final int i = text.lastIndexOf(dow);
                if (i != -1) {
                    return text.substring(i);
                }
            }
            return null;
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Longs.java

       *     such index exists.
       */
      public static int lastIndexOf(long[] array, long target) {
        return lastIndexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int lastIndexOf(long[] array, long target, int start, int end) {
        for (int i = end - 1; i >= start; i--) {
          if (array[i] == target) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Longs.java

       *     such index exists.
       */
      public static int lastIndexOf(long[] array, long target) {
        return lastIndexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int lastIndexOf(long[] array, long target, int start, int end) {
        for (int i = end - 1; i >= start; i--) {
          if (array[i] == target) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java

            return outExt == null ? "txt" : outExt;
        }
    
        private String getFileName(final String resourceName) {
            final String name = resourceName.replaceAll("/+$", "");
            final int pos = name.lastIndexOf('/');
            if (pos >= 0) {
                return name.substring(pos + 1);
            }
            return name;
        }
    
        public void setOfficeManager(final OfficeManager officeManager) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/user/allcommon/EsAbstractBehavior.java

                return parent.remove(index);
            }
    
            public int indexOf(final Object o) {
                return parent.indexOf(o);
            }
    
            public int lastIndexOf(final Object o) {
                return parent.lastIndexOf(o);
            }
    
            public ListIterator<E> listIterator() {
                return parent.listIterator();
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

    
        private static boolean pathNamesPossiblyEqual ( String path1, String path2 ) {
            int p1, p2, l1, l2;
    
            // if unsure return this method returns true
    
            p1 = path1.lastIndexOf('/');
            p2 = path2.lastIndexOf('/');
            l1 = path1.length() - p1;
            l2 = path2.length() - p2;
    
            // anything with dots voids comparison
            if ( l1 > 1 && path1.charAt(p1 + 1) == '.' )
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 20 08:24:53 UTC 2019
    - 23.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/ResourceUtil.java

         *            パス。{@literal null}であってはいけません
         * @return 拡張子
         */
        public static String getExtension(final String path) {
            assertArgumentNotNull("path", path);
    
            final int extPos = path.lastIndexOf(".");
            if (extPos >= 0) {
                return path.substring(extPos + 1);
            }
            return null;
        }
    
        /**
         * パスから拡張子を取り除きます。
         *
         * @param path
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        }
    
        // Check that asterisk did not match across domain name labels.
        val suffixStartIndexInHostname = hostname.length - suffix.length
        if (suffixStartIndexInHostname > 0 &&
          hostname.lastIndexOf('.', suffixStartIndexInHostname - 1) != -1
        ) {
          return false // Asterisk is matching across domain name labels -- not permitted.
        }
    
        // Hostname matches pattern.
        return true
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top