Class Group
java.lang.Object
org.drasyl.node.plugin.groups.manager.data.Group
Class is used to model the state of a group.
This class should only plugin internally used.
-
Field Summary
-
Method Summary
-
Field Details
-
GROUP_MIN_TIMEOUT
-
GROUP_DEFAULT_TIMEOUT
-
GROUP_DEFAULT_MIN_DIFFICULTY
public static final byte GROUP_DEFAULT_MIN_DIFFICULTY- See Also:
-
-
Method Details
-
getName
-
getCredentials
-
getMinDifficulty
public byte getMinDifficulty() -
getTimeout
-
getTimeoutSeconds
public long getTimeoutSeconds() -
hashCode
public int hashCode() -
equals
-
toString
-
getUri
-
of
Creates a Group object with given parameters.- Parameters:
name
- name of groupcredentials
- credentials of groupminDifficulty
- min difficulty of grouptimeout
- timeout of group- Returns:
- created Group
- Throws:
IllegalArgumentException
- if created Group is invalid
-
of
Creates a Group object with default minDifficulty and timeout.- Parameters:
name
- name of groupcredentials
- credentials of group- Returns:
- created Group
- Throws:
IllegalArgumentException
- if created Group is invalid
-