⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 task.java

📁 The Software cannot constitute the primary value of any new software derived from or incorporating
💻 JAVA
字号:
package com.forum.nokia.taskmanager.beans;

/**
 * This struct-style JavaBean class represents a single task.
 */
public class Task
{
    /**
     * Task attributes.
     */
    private String owner;

    private String ownerId;

    private String description;

    private String status;

    private String taskId;

    /**
     * Default constructor. Mandatory in a JavaBean.
     */
    public Task()
    {
    }

    /**
     * Constructor for a multitude of data.
     * 
     * @param owner
     *            Task owner username.
     * @param ownerId
     *            Id of the owner.
     * @param description
     *            Task description.
     * @param status
     *            Status of the task.
     * @param taskId
     *            Id number of the task.
     */
    
    public Task( String owner, String ownerId, String description,
            String status, String taskId )
    {
        this.owner = owner;
        this.ownerId = ownerId;
        this.description = description;
        this.status = status;
        this.taskId = taskId;
    }

    /**
     * Getter for owner.
     * 
     * @return Owner username.
     */
    public String getOwner()
    {
        return owner;
    }

    /**
     * Getter for owner id number.
     * 
     * @return Owner id number.
     */
    public String getOwnerId()
    {
        return ownerId;
    }

    /**
     * Getter for task description.
     * 
     * @return Description of task.
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * Getter for task state.
     * 
     * @return State of task.
     */
    public String getStatus()
    {
        return status;
    }

    /**
     * Getter for task id number.
     * 
     * @return Task id number.
     */
    public String getTaskId()
    {
        return taskId;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -