public class UserListIPBans extends UserList<java.lang.String,UserListIPBansEntry>
UserList.Serializer
Constructor and Description |
---|
UserListIPBans(java.io.File bansFile) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
addressToString(java.net.SocketAddress address) |
protected UserListEntry<java.lang.String> |
createEntry(com.google.gson.JsonObject entryData) |
UserListIPBansEntry |
getBanEntry(java.net.SocketAddress address) |
boolean |
isBanned(java.net.SocketAddress address) |
addEntry, getEntry, getKeys, getObjectKey, getSaveFile, getValues, hasEntry, isEmpty, isLanServer, readSavedFile, removeEntry, setLanServer, writeChanges
protected UserListEntry<java.lang.String> createEntry(com.google.gson.JsonObject entryData)
createEntry
in class UserList<java.lang.String,UserListIPBansEntry>
public boolean isBanned(java.net.SocketAddress address)
public UserListIPBansEntry getBanEntry(java.net.SocketAddress address)
private java.lang.String addressToString(java.net.SocketAddress address)