Esempio n. 1
0
 public static NetworkInterface FindInterfaceNetworkNameNotEmpty(
     ArrayList<NetworkInterface> items) {
   for (NetworkInterface i : items) {
     if (!StringHelper.isNullOrEmpty(i.getNetworkName())) {
       return i;
     }
   }
   return null;
 }
Esempio n. 2
0
 public static NetworkInterface FindInterfaceByNetworkName(
     ArrayList<NetworkInterface> items, String name) {
   for (NetworkInterface i : items) {
     if (StringHelper.stringsEqual(i.getNetworkName(), name)) {
       return i;
     }
   }
   return null;
 }
Esempio n. 3
0
 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;
 }