Android List Search strIsInList(String srcStr, List orgList)

Here you can find the source of strIsInList(String srcStr, List orgList)

Description

str Is In List

Declaration

public static boolean strIsInList(String srcStr, List<String> orgList) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    public static boolean strIsInList(String srcStr, List<String> orgList) {
        if (orgList == null)
            return true;
        for (String strList : orgList)
            if (strList.equals(srcStr))
                return false;

        return true;

    }//  w  ww  . j av a  2 s . com
}

Related

  1. getMax(List ids_int)
  2. isIntListContinous(List list)