public abstract class BanEntry<T> extends ServerConfigEntry<T>
Modifier and Type | Field and Description |
---|---|
protected Date |
creationDate |
static SimpleDateFormat |
DATE_FORMAT |
protected Date |
expiryDate |
protected String |
reason |
protected String |
source |
Modifier | Constructor and Description |
---|---|
|
BanEntry(T key,
Date creationDate,
String source,
Date expiryDate,
String reason) |
protected |
BanEntry(T key,
JsonObject json) |
Modifier and Type | Method and Description |
---|---|
protected void |
fromJson(JsonObject json) |
Date |
getExpiryDate() |
String |
getReason() |
String |
getSource() |
(package private) boolean |
isInvalid() |
abstract Text |
toText() |
getKey
public static final SimpleDateFormat DATE_FORMAT
protected final Date creationDate
protected final String source
protected final Date expiryDate
protected final String reason
public BanEntry(T key, @Nullable Date creationDate, @Nullable String source, @Nullable Date expiryDate, @Nullable String reason)
protected BanEntry(T key, JsonObject json)
public String getSource()
public Date getExpiryDate()
public String getReason()
public abstract Text toText()
boolean isInvalid()
isInvalid
in class ServerConfigEntry<T>
protected void fromJson(JsonObject json)
fromJson
in class ServerConfigEntry<T>