Package be.seeseemelk.mockbukkit
Class MockBanList.MockBanEntry
java.lang.Object
be.seeseemelk.mockbukkit.MockBanList.MockBanEntry
- All Implemented Interfaces:
BanEntry
- Enclosing class:
- MockBanList
Mock implementation of a
BanEntry.-
Constructor Summary
ConstructorsConstructorDescriptionMockBanEntry(String target, Date expires, String reason, String source) Constructs a newMockBanList.MockBanEntry. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull Date@NotNull String@NotNull StringinthashCode()voidsave()voidsetCreated(Date created) voidsetExpiration(Date expiration) voidvoid
-
Constructor Details
-
MockBanEntry
Constructs a newMockBanList.MockBanEntry.- Parameters:
target- The target of the ban.expires- When the ban expires, or null for a permanent ban.reason- The reason for the ban.source- The source of the ban.
-
-
Method Details
-
getTarget
-
getCreated
- Specified by:
getCreatedin interfaceBanEntry
-
setCreated
- Specified by:
setCreatedin interfaceBanEntry
-
getSource
-
setSource
-
getExpiration
- Specified by:
getExpirationin interfaceBanEntry
-
setExpiration
- Specified by:
setExpirationin interfaceBanEntry
-
getReason
-
setReason
-
save
public void save() -
hashCode
public int hashCode() -
equals
-