task.java

来自「symbian s60 end to end socket程序源码 基于第二版」· Java 代码 · 共 39 行

JAVA
39
字号
/*
 * Copyright 2005 Nokia. All rights reserved.
 */
package com.forum.nokia.taskmanager;

/**
 * A structure to store a single task.
 * 
 */
public class Task
{
    private int id;
    private String description;
    
    /**
     * Basic constructor.
     * 
     * @param id Id of the task.
     * @param description Description of the task.
     */
    public Task( int id, String description )
    {
        this.id = id;
        this.description = description;
    }
    
    /**
     * Getter for task id.
     * @return Id of the task as integer.
     */
    public int getId() { return id; }
    
    /**
     * Getter for task description.
     * @return Description of the task as string.
     */
    public String getDesc() { return description; }
}

⌨️ 快捷键说明

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