Class GroupUri
java.lang.Object
org.drasyl.node.plugin.groups.client.GroupUri
This class models the connection/join setting of a group.
This is an immutable object.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetGroup()getName()inthashCode()static GroupUriGenerates aGroupUriobject from the given groups URI.static GroupUriGenerates aGroupUriobject from the given groups URI.static GroupUriof(IdentityPublicKey manager, String credentials, String name, Duration timeout) toString()toUri()
-
Field Details
-
MIN_TIMEOUT
public static final int MIN_TIMEOUT- See Also:
-
SCHEME
- See Also:
-
-
Method Details
-
getManager
-
getCredentials
-
getName
-
getTimeout
-
hashCode
public int hashCode() -
equals
-
toString
-
toUri
-
getGroup
-
of
public static GroupUri of(IdentityPublicKey manager, String credentials, String name, Duration timeout) -
of
Generates aGroupUriobject from the given groups URI.- Parameters:
uri- the groups URI- Returns:
- a
GroupUriobject - Throws:
IllegalArgumentException- if the groups URI is invalid
-
of
Generates aGroupUriobject from the given groups URI.- Parameters:
uri- the groups URI- Returns:
- a
GroupUriobject - Throws:
IllegalArgumentException- if the groups URL is invalid
-