Record Class ConsoleView.MemberRow
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.console.ConsoleView.MemberRow
- Enclosing class:
ConsoleView
public static record ConsoleView.MemberRow(String peer, List<String> roles, boolean suspect, List<String> endpoints, String channel)
extends Record
One group member as the console shows it.
channel is the frame
authentication mode toward that peer (spec ยง5.6): "attested"
when frames ride an authenticated channel unsigned, "signed"
otherwise.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the value of thechannelrecord component.Returns the value of theendpointsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.peer()Returns the value of thepeerrecord component.roles()Returns the value of therolesrecord component.booleansuspect()Returns the value of thesuspectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemberRow
public MemberRow(String peer, List<String> roles, boolean suspect, List<String> endpoints, String channel) Creates an instance of aMemberRowrecord class.- Parameters:
peer- the value for thepeerrecord componentroles- the value for therolesrecord componentsuspect- the value for thesuspectrecord componentendpoints- the value for theendpointsrecord componentchannel- the value for thechannelrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
peer
Returns the value of thepeerrecord component.- Returns:
- the value of the
peerrecord component
-
roles
-
suspect
public boolean suspect()Returns the value of thesuspectrecord component.- Returns:
- the value of the
suspectrecord component
-
endpoints
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-