app/src/main/java/com/treslines/pagsegurodemo/PagSeguroCheckout.java
private void validate(final String saleReference){
        if(saleReference.isEmpty()){
            throw new IllegalArgumentException("Product's sale reference can not be empty!");
        }
        if(saleReference.length()>200){
            throw new IllegalArgumentException("Product's sale reference can not exceed 200 characters!");
        }
    }
/** validation acc. to pagseguro's web documentation*/
validation acc. to pagseguro's web documentation
validation acc . to pagseguro ' s web documentation
private void validate(final String saleReference){
        if(saleReference.isEmpty()){
            throw new IllegalArgumentException("Product's sale reference can not be empty!");
        }
        if(saleReference.length()>200){
            throw new IllegalArgumentException("Product's sale reference can not exceed 200 characters!");
        }
    }
private void validate ( final String saleReference ) { if ( saleReference . isEmpty ( ) ) { throw new IllegalArgumentException ( "Product's sale reference can not be empty!" ) ; } if ( saleReference . length ( ) > 200 ) { throw new IllegalArgumentException ( "Product's sale reference can not exceed 200 characters!" ) ; } }
validation acc.
validation acc .