Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment, the first part is to build up a Java Predicate object using criteria chosen by the user. In the second part, you
For this assignment, the first part is to build up a Java Predicate object using criteria chosen by the user. In the second part, you use this Predicate to filter a file of Task's Define a Task class that includes: o The project name this task is associated with (technically, unique over all projects, but you are not required to check this) o The task ID, a string that is unique for all tasks within a project o The task type, one of a set of valid task types It's ok to use an int or String or (probably best) an Enum The task description: a String The userid (a String) assigned to do this task o The deadline for this Task: use a java.time LocalDate Time o When the task was completed: use another LocalDateTime . Your program should ask the user for essentially search critfor Task's o You need to represent the composition of all search criteria as a Predicate o All of the fields other than task ID and description should be covered ?The criteria for a field should be field specific, so the date fields should allow the user to specify a range of values, while the project name can be Just the name of the project ofinterest o One specific requirement is to allow the user to choose to look for unassigned tasks Test your Predicate by applying it to a List of Tasks. Output the information (including task ID and description) for all relevant Task's, one Task to a line. For this assignment, the first part is to build up a Java Predicate object using criteria chosen by the user. In the second part, you use this Predicate to filter a file of Task's Define a Task class that includes: o The project name this task is associated with (technically, unique over all projects, but you are not required to check this) o The task ID, a string that is unique for all tasks within a project o The task type, one of a set of valid task types It's ok to use an int or String or (probably best) an Enum The task description: a String The userid (a String) assigned to do this task o The deadline for this Task: use a java.time LocalDate Time o When the task was completed: use another LocalDateTime . Your program should ask the user for essentially search critfor Task's o You need to represent the composition of all search criteria as a Predicate o All of the fields other than task ID and description should be covered ?The criteria for a field should be field specific, so the date fields should allow the user to specify a range of values, while the project name can be Just the name of the project ofinterest o One specific requirement is to allow the user to choose to look for unassigned tasks Test your Predicate by applying it to a List of Tasks. Output the information (including task ID and description) for all relevant Task's, one Task to a line
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started