Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!