Record Class FleetCommander.C2Record
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.console.FleetCommander.C2Record
- Enclosing class:
FleetCommander
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theissuedMillisrecord component.kind()Returns the value of thekindrecord component.operator()Returns the value of theoperatorrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
C2Record
public C2Record(String kind, String action, String target, String operator, String detail, long issuedMillis) Creates an instance of aC2Recordrecord class.- Parameters:
kind- the value for thekindrecord componentaction- the value for theactionrecord componenttarget- the value for thetargetrecord componentoperator- the value for theoperatorrecord componentdetail- the value for thedetailrecord componentissuedMillis- the value for theissuedMillisrecord 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. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
issuedMillis
public long issuedMillis()Returns the value of theissuedMillisrecord component.- Returns:
- the value of the
issuedMillisrecord component
-