public class Article extends CommonModel implements Comparable<Article>
Constructor and Description |
---|
Article() |
Article(String nid,
String title,
String text,
String author,
String note) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Article other) |
void |
deserialize(String jsonString) |
boolean |
equals(Object obj) |
String |
getAuthor() |
Class<Articles> |
getModelList() |
Integer |
getNid() |
int |
getNote() |
String |
getText() |
String |
getTitle() |
int |
hashCode() |
void |
setAuthor(String author) |
void |
setNid(Integer nid) |
void |
setNote(int note) |
void |
setText(String text) |
void |
setTitle(String title) |
String |
toString() |
serialize
public void deserialize(String jsonString)
deserialize
in interface SerializableModel
jsonString
- is a string with a Object serializedpublic Class<Articles> getModelList()
getModelList
in interface Model
public int compareTo(Article other)
compareTo
in interface Comparable<Article>
public Integer getNid()
public void setNid(Integer nid)
public String getTitle()
public void setTitle(String title)
public String getText()
public void setText(String text)
public String getAuthor()
public void setAuthor(String author)
public int getNote()
public void setNote(int note)
Copyright © 2023 NoraUi. All rights reserved.