Example #1
0
 /**
  * @return the number of threads Buck should use or the specified defaultValue if it is not set.
  */
 public int getNumThreads(int defaultValue) {
   return config.getLong("build", "threads").or((long) defaultValue).intValue();
 }
Example #2
0
 public Optional<Long> getLong(String sectionName, String propertyName) {
   return config.getLong(sectionName, propertyName);
 }