Java List IndexOf indexOf(int start, List datas, T target)

Here you can find the source of indexOf(int start, List datas, T target)

Description

index Of

License

Apache License

Declaration

public static <T> int indexOf(int start, List<T> datas, T target) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    public static <T> int indexOf(int start, List<T> datas, T target) {
        int index = -1;

        for (int i = start; i < datas.size(); i++) {
            if (datas.get(i).equals(target)) {
                index = i;/*from  w w  w  . j av a2  s.  c  om*/
                break;
            }
        }
        return index;
    }
}

Related

  1. indexOf(final String regex, final List list)
  2. indexOf(int hash, List list)
  3. indexOf(List list, Object element, int begin, int end)
  4. indexOf(List data, List token)
  5. indexOf(List source, List target)
  6. indexOf(List lines, String... conditions)