public static NetworkInterface FindInterfaceNetworkNameNotEmpty( ArrayList<NetworkInterface> items) { for (NetworkInterface i : items) { if (!StringHelper.isNullOrEmpty(i.getNetworkName())) { return i; } } return null; }
public static NetworkInterface FindInterfaceByNetworkName( ArrayList<NetworkInterface> items, String name) { for (NetworkInterface i : items) { if (StringHelper.stringsEqual(i.getNetworkName(), name)) { return i; } } return null; }
public static ArrayList<NetworkInterface> FindAllInterfaceNetworkNameNotEmpty( ArrayList<NetworkInterface> items) { ArrayList<NetworkInterface> ret = new ArrayList<NetworkInterface>(); for (NetworkInterface i : items) { if (!StringHelper.isNullOrEmpty(i.getNetworkName())) { ret.add(i); } } return ret; }