Class AdventOfCode
java.lang.Object
com.expedient.adventofcodejade.AdventOfCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidEntry point for applicationstatic voidrunAllSolutions(boolean test, SolutionLoader loader, boolean metrics) Iterate over all solutions and print the solution for each, along with the headerstatic voidrunAllSolutionsForYear(int year, boolean test, SolutionLoader loader, boolean metrics) static voidrunAllSolutionsForYear(String yearInput, boolean test, SolutionLoader loader, boolean metrics) static voidrunForDay(String yearArg, String dayArg, boolean test, SolutionLoader loader, boolean metrics) Parse out the selected day from command line args and run itstatic voidrunLatestSolution(boolean test, SolutionLoader loader, boolean metrics) Get all solutions and only run the latest one
-
Constructor Details
-
AdventOfCode
public AdventOfCode()
-
-
Method Details
-
main
Entry point for application- Parameters:
args- command line arguments for application--help- prints help--test- uses sample input--all- prints and runs all solutions--year=x- prints and runs solutions for yearx--day=x- prints and runs solution for dayx
-
runForDay
public static void runForDay(String yearArg, String dayArg, boolean test, SolutionLoader loader, boolean metrics) Parse out the selected day from command line args and run it- Parameters:
dayArg- selected daytest- whether to use sample input
-
runLatestSolution
Get all solutions and only run the latest one- Parameters:
test- whether to use sample input
-
runAllSolutionsForYear
public static void runAllSolutionsForYear(int year, boolean test, SolutionLoader loader, boolean metrics) -
runAllSolutionsForYear
public static void runAllSolutionsForYear(String yearInput, boolean test, SolutionLoader loader, boolean metrics) -
runAllSolutions
Iterate over all solutions and print the solution for each, along with the header- Parameters:
test- whether to use sample input
-