package top.imwork.window.silos.processor;

import lombok.Data;

/**
 * Copyright (C), 2015-2025
 * FileName: ChapterContent
 * Author<作者姓名>:   stars
 * CreateTime<创建时间>:   2025/12/16 16:56
 * UpdateTime<修改时间>:   2025/12/16 16:56
 * Description〈功能简述〉: 章节内容
 * History<历史描述>:
 * Since<版本号>: 1.0.0
 */
@Data
public class ChapterContent {
    private final int number;
    private final String title;
    private final String content;

    public ChapterContent(int number, String title, String content) {
        this.number = number;
        this.title = title;
        this.content = content;
    }

    public int getNumber() { return number; }
    public String getTitle() { return title; }
    public String getContent() { return content; }

    @Override
    public String toString() {
        return String.format("第%d章: %s (长度: %d 字符)",
                number, title, content.length());
    }
}