public void checkOptionsValid(){
  if (alias_ratio < 0 || alias_ratio > 1) {
    throw new RuntimeException("Alias ratio must be between 0 and 1, inclusive.");
  }
  if (null_ratio < 0 || null_ratio > 1) {
    throw new RuntimeException("Null ratio must be between 0 and 1, inclusive.");
  }
  if (maxsize <= 0) {
    throw new RuntimeException("Maximum sequence size must be greater than zero but was " + maxsize);
  }
  if (!literals_file.isEmpty() && literals_level == ClassLiteralsMode.NONE) {
    throw new RuntimeException("Invalid parameter combination: specified a class literal file but --use-class-literals=NONE");
  }
}

public void checkOptionsValid ( ) { if ( alias_ratio < 0 || alias_ratio > 1 ) { throw new RuntimeException ( "Alias ratio must be between 0 and 1, inclusive." ) ; } if ( null_ratio < 0 || null_ratio > 1 ) { throw new RuntimeException ( "Null ratio must be between 0 and 1, inclusive." ) ; } if ( maxsize <= 0 ) { throw new RuntimeException ( "Maximum sequence size must be greater than zero but was " + maxsize ) ; } if ( ! literals_file . isEmpty ( ) && literals_level == ClassLiteralsMode . NONE ) { throw new RuntimeException ( "Invalid parameter combination: specified a class literal file but --use-class-literals=NONE" ) ; } }
check that the options given satisfy any specified constraints , and fail if they do not .
