Java List IndexOf indexOfIdentity(List l, T t)

Here you can find the source of indexOfIdentity(List l, T t)

Description

index Of Identity

License

Open Source License

Declaration

public static <T> int indexOfIdentity(List<T> l, T t) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static <T> int indexOfIdentity(List<T> l, T t) {
        for (int i = 0; i < l.size(); i++) {
            if (l.get(i) == t)
                return i;
        }//from ww w .j  ava  2  s .  co  m
        return -1;
    }
}

Related

  1. indexOf(List list, T string, int beginIndex)
  2. indexOf(Object o, Collection list)
  3. indexOfFactory(List factories, Class classInstance)
  4. indexOfId(List aList, Object anObj)
  5. indexOfIdentical(List list, Object value)
  6. indexOfIgnoreCase(List values, String target)
  7. indexOfInstance(List list, Object object)
  8. indexOfInstance(List list, Class type)
  9. indexOfMax(List list)