Java List IndexOf indexOfIgnoreCase(List values, String target)

Here you can find the source of indexOfIgnoreCase(List values, String target)

Description

index Of Ignore Case

License

Apache License

Declaration

public static int indexOfIgnoreCase(List<String> values, String target) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.util.List;

public class Main {
    public static int indexOfIgnoreCase(List<String> values, String target) {
        for (int i = 0; i < values.size(); i++) {
            if (values.get(i).equalsIgnoreCase(target)) {
                return i;
            }//w ww.  ja va2s.c o  m
        }
        return -1;
    }
}

Related

  1. indexOf(Object o, Collection list)
  2. indexOfFactory(List factories, Class classInstance)
  3. indexOfId(List aList, Object anObj)
  4. indexOfIdentical(List list, Object value)
  5. indexOfIdentity(List l, T t)
  6. indexOfInstance(List list, Object object)
  7. indexOfInstance(List list, Class type)
  8. indexOfMax(List list)
  9. indexOfMax(List list)