public static UserInfo create(String address,String alias,int gender,int age,int height,int weight,int type) throws IllegalArgumentException {
  if (address == null || address.length() == 0 || alias == null || alias.length() == 0 || gender < 0 || age <= 0 || weight <= 0 || type < 0) {
    throw new IllegalArgumentException("Invalid parameters");
  }
  try {
    return new UserInfo(address,alias,gender,age,height,weight,type);
  }
 catch (  Exception ex) {
    throw new IllegalArgumentException("Illegal user info data",ex);
  }
}

public static UserInfo create ( String address , String alias , int gender , int age , int height , int weight , int type ) throws IllegalArgumentException { if ( address == null || address . length ( ) == 0 || alias == null || alias . length ( ) == 0 || gender < 0 || age <= 0 || weight <= 0 || type < 0 ) { throw new IllegalArgumentException ( "Invalid parameters" ) ; } try { return new UserInfo ( address , alias , gender , age , height , weight , type ) ; } catch ( Exception ex ) { throw new IllegalArgumentException ( "Illegal user info data" , ex ) ; } }
creates a user info with the given data
