public static Arguments create ( List < String > values , Map < String , String > params ) { if ( values == null ) { values = emptyList ( ) ; } if ( params == null ) { params = emptyMap ( ) ; } if ( values . isEmpty ( ) && params . isEmpty ( ) ) { return NONE ; } return new Arguments ( values , params ) ; }
Creates a new object with the list of arguments . It checks for the number of argument entries and creates an empty arguments object if necessary .