Record Class ManagementTarget.Group
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.ManagementTarget.Group
- Record Components:
id- the group's id; it never changes, so it is the thing to keepname- the group's name as it is now; it changes when the group is renamed, and it is what theClientOrchestrator's group methods take
- All Implemented Interfaces:
ManagementTarget
- Enclosing interface:
ManagementTarget
public static record ManagementTarget.Group(String id, String name)
extends Record
implements ManagementTarget
Every client in a group, and every script on each.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ManagementTarget
ManagementTarget.ClientScript, ManagementTarget.Group, ManagementTarget.WholeHost -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Group
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
name
-