public class ProtectAction extends Object
| Constructor and Description |
|---|
ProtectAction(ProtectActionType protectActionType,
User owner,
Material material)
May be used with protectActionType == PROTECT or UNPROTECT or LOCK or UNLOCK.
|
ProtectAction(ProtectActionType protectActionType,
User owner,
Material material,
User user)
Instantiates a new protect action.
|
ProtectAction(ProtectActionType protectActionType,
User owner,
User user)
May only be used with protectActionType == FRIEND or UNFRIEND.
|
ProtectAction(User user)
Creates a DROP ProtectAction
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ProtectActionType |
getActionType() |
Material |
getMaterial() |
User |
getOwner() |
long |
getTimeStamp() |
User |
getUser() |
int |
hashCode() |
String |
toString() |
public ProtectAction(ProtectActionType protectActionType, User owner, Material material, User user)
protectActionType - the protect action typeowner - Must not be nullmaterial - may be null or left out depending on action typeuser - may be null or left out depending on action typepublic ProtectAction(ProtectActionType protectActionType, User owner, Material material)
protectActionType - the protect action typeowner - the ownermaterial - the materialpublic ProtectAction(ProtectActionType protectActionType, User owner, User user)
protectActionType - the protect action typeowner - the owneruser - the userpublic ProtectAction(User user)
user - the userpublic ProtectActionType getActionType()
public User getOwner()
public User getUser()
public Material getMaterial()
public long getTimeStamp()
Copyright © 2015. All rights reserved.