@Nullable public static NetworkParameters fromID(String id){
  if (id.equals(ID_MAINNET)) {
    return MainNetParams.get();
  }
 else   if (id.equals(ID_TESTNET)) {
    return TestNet3Params.get();
  }
 else   if (id.equals(ID_UNITTESTNET)) {
    return UnitTestParams.get();
  }
 else   if (id.equals(ID_REGTEST)) {
    return RegTestParams.get();
  }
 else   if (id.equals(ID_ALPHANET)) {
    return AlphaNetParams.get();
  }
 else {
    return null;
  }
}

@ Nullable public static NetworkParameters fromID ( String id ) { if ( id . equals ( ID_MAINNET ) ) { return MainNetParams . get ( ) ; } else if ( id . equals ( ID_TESTNET ) ) { return TestNet3Params . get ( ) ; } else if ( id . equals ( ID_UNITTESTNET ) ) { return UnitTestParams . get ( ) ; } else if ( id . equals ( ID_REGTEST ) ) { return RegTestParams . get ( ) ; } else if ( id . equals ( ID_ALPHANET ) ) { return AlphaNetParams . get ( ) ; } else { return null ; } }
returns the network parameters for the given string id or null if not recognized .
