public class GroupDomain extends Object implements Domain, ChangeTracked
| Constructor and Description |
|---|
GroupDomain()
Create a new instance.
|
GroupDomain(GroupDomain domain)
Create a new instance with copies from another domain.
|
GroupDomain(String[] groups)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String name)
Add the name of the group to the domain.
|
void |
clear()
Remove all entries.
|
boolean |
contains(LocalPlayer player)
Returns true if a domain contains a player.
|
boolean |
contains(String playerName)
Returns true if a domain contains a player.
|
boolean |
contains(UUID uniqueId)
Returns true if a domain contains a player.
|
Set<String> |
getGroups()
Get the set of group names.
|
boolean |
isDirty()
Tests whether changes have been made.
|
void |
removeGroup(String name)
Remove the given group from the domain.
|
void |
setDirty(boolean dirty)
Set whether changes have been made.
|
int |
size()
Get the number of entries.
|
String |
toString() |
public GroupDomain()
public GroupDomain(GroupDomain domain)
domain - the domain to copy values frompublic GroupDomain(String[] groups)
groups - an array of groupspublic void addGroup(String name)
name - the name of the group.public void removeGroup(String name)
name - the name of the grouppublic boolean contains(LocalPlayer player)
Domainpublic Set<String> getGroups()
public boolean contains(UUID uniqueId)
DomainThis method doesn't check for groups!
public boolean contains(String playerName)
DomainThis method doesn't check for groups!
public int size()
Domainpublic void clear()
Domainpublic boolean isDirty()
ChangeTrackedisDirty in interface ChangeTrackedpublic void setDirty(boolean dirty)
ChangeTrackedsetDirty in interface ChangeTrackeddirty - a new dirty stateCopyright © 2015. All Rights Reserved.