public static synchronized 
  ArrayList<NetworkInterface> getNetworkInterfaces()
  {
    ArrayList<NetworkInterface> interfaceList
      = (ArrayList<NetworkInterface>) _cache.get("network-interfaces");
    
    if (interfaceList == null) {
      interfaceList = new ArrayList<NetworkInterface>();
      
      try {
        Enumeration<NetworkInterface> ifaceEnum
          = NetworkInterface.getNetworkInterfaces();
    
        while (ifaceEnum.hasMoreElements()) {
          NetworkInterface iface = ifaceEnum.nextElement();

          interfaceList.add(iface);
        }
      } catch (Exception e) {
        log.log(Level.WARNING, e.toString(), e);
      }
      
      _cache.put("network-interfaces", interfaceList);
    }

    return new ArrayList<NetworkInterface>(interfaceList);
  }
public static synchronized ArrayList < NetworkInterface > getNetworkInterfaces ( ) { ArrayList < NetworkInterface > interfaceList = ( ArrayList < NetworkInterface > ) _cache . get ( "network-interfaces" ) ; if ( interfaceList == null ) { interfaceList = new ArrayList < NetworkInterface > ( ) ; try { Enumeration < NetworkInterface > ifaceEnum = NetworkInterface . getNetworkInterfaces ( ) ; while ( ifaceEnum . hasMoreElements ( ) ) { NetworkInterface iface = ifaceEnum . nextElement ( ) ; interfaceList . add ( iface ) ; } } catch ( Exception e ) { log . log ( Level . WARNING , e . toString ( ) , e ) ; } _cache . put ( "network-interfaces" , interfaceList ) ; } return new ArrayList < NetworkInterface > ( interfaceList ) ; }
@return