Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for indexOfRandomAccess (0.1 sec)

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

      }
    
      /** An implementation of {@link List#indexOf(Object)}. */
      static int indexOfImpl(List<?> list, @CheckForNull Object element) {
        if (list instanceof RandomAccess) {
          return indexOfRandomAccess(list, element);
        } else {
          ListIterator<?> listIterator = list.listIterator();
          while (listIterator.hasNext()) {
            if (Objects.equal(element, listIterator.next())) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
Back to top