public class UserList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.google.gson.Gson |
gson |
protected static org.apache.logging.log4j.Logger |
logger |
Constructor and Description |
---|
UserList(java.io.File saveFile) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(UserListEntry entry) |
protected UserListEntry |
createEntry(com.google.gson.JsonObject entryData) |
UserListEntry |
getEntry(java.lang.Object obj) |
java.lang.String[] |
getKeys() |
protected java.lang.String |
getObjectKey(java.lang.Object obj) |
java.io.File |
getSaveFile() |
protected java.util.Map |
getValues() |
boolean |
hasEntries() |
protected boolean |
hasEntry(java.lang.Object entry) |
boolean |
isLanServer() |
void |
readSavedFile() |
void |
removeEntry(java.lang.Object p_152684_1_) |
void |
setLanServer(boolean state) |
void |
writeChanges() |
protected static final org.apache.logging.log4j.Logger logger
protected final com.google.gson.Gson gson
public boolean isLanServer()
public void setLanServer(boolean state)
public void addEntry(UserListEntry entry)
public UserListEntry getEntry(java.lang.Object obj)
public void removeEntry(java.lang.Object p_152684_1_)
public java.io.File getSaveFile()
public java.lang.String[] getKeys()
protected java.lang.String getObjectKey(java.lang.Object obj)
protected boolean hasEntry(java.lang.Object entry)
protected UserListEntry createEntry(com.google.gson.JsonObject entryData)
protected java.util.Map getValues()
public void writeChanges() throws java.io.IOException
java.io.IOException
public boolean hasEntries()
public void readSavedFile() throws java.io.IOException
java.io.IOException