Record Class SessionInfo
java.lang.Object
java.lang.Record
com.shaft.commandline.session.SessionInfo
- Record Components:
port- the HTTP daemon's listening port on127.0.0.1pid- the daemon process idjarPath- the resolved shaft-mcp jar path used to launch the daemonstartedAt- the daemon's start time as an ISO-8601 instant string
-
Constructor Summary
ConstructorsConstructorDescriptionSessionInfo(int port, long pid, String jarPath, String startedAt) Creates an instance of aSessionInforecord class. -
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.jarPath()Returns the value of thejarPathrecord component.longpid()Returns the value of thepidrecord component.intport()Returns the value of theportrecord component.Returns the value of thestartedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
port
-
pid
-
jarPath
-
startedAt
-