public static NetworkInfo fromFriendlyName(final String friendlyName){
switch (friendlyName) {
case "mainnet":
    return NetworkInfos.getMainNetworkInfo();
case "testnet":
  return NetworkInfos.getTestNetworkInfo();
case "mijinnet":
return NetworkInfos.getMijinNetworkInfo();
}
throw new IllegalArgumentException(String.format("unknown network name %s",friendlyName));
}

public static NetworkInfo fromFriendlyName ( final String friendlyName ) { switch ( friendlyName ) { case "mainnet" : return NetworkInfos . getMainNetworkInfo ( ) ; case "testnet" : return NetworkInfos . getTestNetworkInfo ( ) ; case "mijinnet" : return NetworkInfos . getMijinNetworkInfo ( ) ; } throw new IllegalArgumentException ( String . format ( "unknown network name %s" , friendlyName ) ) ; }
gets the network info from a friendly name .
