0% found this document useful (0 votes)
3 views3 pages

Java Task Class and Data Setup Guide

The document outlines the requirements for creating a Task class in Java, which includes attributes like assignee, project name, task description, status, and priority, all of which should be editable. It also specifies that tasks are uniquely identified by their project name and description and should implement Comparable for sorting. Additionally, a TaskData class is introduced to manage and return test data, with a method to retrieve tasks based on employee names or all tasks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Java Task Class and Data Setup Guide

The document outlines the requirements for creating a Task class in Java, which includes attributes like assignee, project name, task description, status, and priority, all of which should be editable. It also specifies that tasks are uniquely identified by their project name and description and should implement Comparable for sorting. Additionally, a TaskData class is introduced to manage and return test data, with a method to retrieve tasks based on employee names or all tasks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Set Operations Challenge - Task Class

You'll need to create a class that represents a Task.


It should have
• an assignee.
• a project name.
• a task description.
• a status (assigned, in progress, or not yet assigned).
• a priority, High, Low, or Medium.

Each of these attributes should be editable.

COMPLETE JAVA MASTERCLASS


Code Setup (Tasks and TaskData)
Set Operations Challenge - Task Class

A task is uniquely identified by its project name and description.


The task should implement Comparable, so that tasks are sorted by project name
and description.

COMPLETE JAVA MASTERCLASS


Code Setup (Tasks and TaskData)
Set Operations Challenge - TaskData Class

The TaskData class will be used to set up and return some test data.
If you want to use my data, it can be found in a CSV file in the resources section of
this video, and consists of the following:
• All tasks identified by the manager.
• Tasks identified by Ann, that she's working on or plans to work on.
• Tasks which Bob says have been assigned to him.
• Tasks Carol is doing, as reported by herself.

This class should have a getTasks method, that returns a Set of Task. This method
should take a String, either the name of one of the employees to get a specific Set,
or 'all' to get the full task Set.
COMPLETE JAVA MASTERCLASS
Code Setup (Tasks and TaskData)

You might also like