Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 122 for lastIndexOf (0.06 sec)

  1. android/guava/src/com/google/common/primitives/Floats.java

       *     such index exists.
       */
      public static int lastIndexOf(float[] array, float target) {
        return lastIndexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int lastIndexOf(float[] array, float 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
    - 25.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Doubles.java

       *     such index exists.
       */
      public static int lastIndexOf(double[] array, double target) {
        return lastIndexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int lastIndexOf(double[] array, double 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
    - 27.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Floats.java

       *     such index exists.
       */
      public static int lastIndexOf(float[] array, float target) {
        return lastIndexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int lastIndexOf(float[] array, float 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
    - 25.8K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java

                String resourceName = entry.resource.getResourceName();
    
                if (printResourceNames) {
                    int idx = resourceName.lastIndexOf('/');
    
                    if (idx < 0) {
                        buffer.append(resourceName);
                    } else {
                        buffer.append(resourceName, idx + 1, resourceName.length());
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

            }
            f2name = f2.getName();
            if ( f1.isDirectory() ) {
                return f1name.compareToIgnoreCase(f2name);
            }
            i = f1name.lastIndexOf('.');
            t1 = i == -1 ? "" : f1name.substring(i + 1);
            i = f2name.lastIndexOf('.');
            t2 = i == -1 ? "" : f2name.substring(i + 1);
    
            i = t1.compareToIgnoreCase(t2);
            if ( i == 0 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

                    stateMap.put(v, DfsState.VISITED);
                } else if (state == DfsState.VISITING) {
                    // we are already visiting this vertex, this mean we have a cycle
                    int pos = cycle.lastIndexOf(v.label);
                    List<String> ret = cycle.subList(pos, cycle.size());
                    ret.add(v.label);
                    return ret;
                }
            }
            return null;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Doubles.java

       *     such index exists.
       */
      public static int lastIndexOf(double[] array, double target) {
        return lastIndexOf(array, target, 0, array.length);
      }
    
      // TODO(kevinb): consider making this public
      private static int lastIndexOf(double[] array, double 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
    - 28.1K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java

            final String enc = responseData.getCharSet();
    
            if (name == null || enc == null) {
                return null;
            }
    
            name = name.replaceAll("/+$", "");
            final int idx = name.lastIndexOf('/');
            if (idx >= 0) {
                name = name.substring(idx + 1);
            }
            try {
                return URLDecoder.decode(name, enc);
            } catch (final UnsupportedEncodingException e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       * Returns the largest index for which {@link #get} returns {@code target}, or {@code -1} if no
       * such index exists. Values are compared as if by {@link Double#equals}. Equivalent to {@code
       * asList().lastIndexOf(target)}.
       */
      public int lastIndexOf(double target) {
        for (int i = end - 1; i >= start; i--) {
          if (areEqual(array[i], target)) {
            return i - start;
          }
        }
        return -1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ForwardingListTest.java

          return standardHashCode();
        }
    
        @Override
        public int indexOf(Object element) {
          return standardIndexOf(element);
        }
    
        @Override
        public int lastIndexOf(Object element) {
          return standardLastIndexOf(element);
        }
    
        @Override
        public Iterator<T> iterator() {
          return listIterator();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top