public static PolyEquationImpl create ( final int ... args ) { BigInteger [ ] bigints = new BigInteger [ args . length ] ; for ( int i = 0 , n = args . length ; i < n ; i ++ ) { bigints [ i ] = BigInteger . valueOf ( args [ i ] ) ; } return new PolyEquationImpl ( bigints ) ; }
Helper factory to create instances . Accepts int converts them to BigInteger and calls the constructor .