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

📄 messageheader.java

📁 基于java的xsl与xml程序例子
💻 JAVA
字号:
package chap8;

import java.util.*;

/**
 * A summary of a message in a mailbox folder.
 */
public class MessageHeader {
    private long id;
    private String from;
    private String to;
    private String subject;
    private Date whenReceived;

    public String toString() {
        return id + " " + from + " " + to + " " + subject + " " + whenReceived;
    }

    public MessageHeader(long id, String from, String to, String subject,
            Date whenReceived) {
        this.id = id;
        this.from = from;
        this.to = to;
        this.subject = subject;
        this.whenReceived = whenReceived;
    }

    public long getID() {
        return this.id;
    }

    public String getFrom() {
        return this.from;
    }

    public String getTo() {
        return this.to;
    }

    public String getSubject() {
        return this.subject;
    }

    public Date getWhenReceived() {
        return this.whenReceived;
    }
}

⌨️ 快捷键说明

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