All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.duoec.doc.doclet.pojo.Chapter Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package com.duoec.doc.doclet.pojo;

import java.util.List;

public class Chapter extends MongoDbEntity implements Comparable {
    /**
     * 章节名
     */
    private String name;

    /**
     * 书的章节
     */
    private List
sections; /** * 接口类型:restFul / dubbo / ... */ private String type; /** * maven.groupId */ private String groupId; /** * maven.artifactId */ private String artifactId; /** * maven.version */ private String version; /** * 排序,越小越前 */ private Integer order; public String getName() { return name; } public void setName(String name) { this.name = name; } public List
getSections() { return sections; } public void setSections(List
sections) { this.sections = sections; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getGroupId() { return groupId; } public void setGroupId(String groupId) { this.groupId = groupId; } public String getArtifactId() { return artifactId; } public void setArtifactId(String artifactId) { this.artifactId = artifactId; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } @Override public String toString() { return "Chapter: " + name + "[" + type + "]"; } public Integer getOrder() { return order; } public void setOrder(Integer order) { this.order = order; } @Override public int hashCode() { return name.hashCode(); } @Override public boolean equals(Object obj) { return obj != null && Chapter.class.isInstance(obj) && this.name.equals(((Chapter) obj).getName()); } @Override public int compareTo(Chapter o) { return this.order - o.order; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy