public static NetworkInfo fromVersion(final byte version){
  for (  final NetworkInfo info : KNOWN_NETWORKS) {
    if (version == info.getVersion()) {
      return info;
    }
  }
  throw new IllegalArgumentException(String.format("Invalid version '%d' is not a known network version",version));
}

public static NetworkInfo fromVersion ( final byte version ) { for ( final NetworkInfo info : KNOWN_NETWORKS ) { if ( version == info . getVersion ( ) ) { return info ; } } throw new IllegalArgumentException ( String . format ( "Invalid version '%d' is not a known network version" , version ) ) ; }
gets the network info from the version .
