Record Class ServerSpecification
java.lang.Object
java.lang.Record
ghidra.framework.client.ServerSpecification
- Record Components:
protocol- URL protocol (e.g.,https,ghidra).hostname- host name or IP addressport- connection port (positive value)
- All Implemented Interfaces:
Comparable<ServerSpecification>
public record ServerSpecification(String protocol, String hostname, int port)
extends Record
implements Comparable<ServerSpecification>
ServerSpecification URL-based server specification record-
Constructor Summary
ConstructorsConstructorDescriptionServerSpecification(String protocol, String hostname, int port) Creates an instance of aServerSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.static ServerSpecificationfinal inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.intport()Returns the value of theportrecord component.protocol()Returns the value of theprotocolrecord component.final StringtoString()Returns a string representation of this record class.Returns server info in URL form.
-
Constructor Details
-
ServerSpecification
-
-
Method Details
-
get
-
compareTo
- Specified by:
compareToin interfaceComparable<ServerSpecification>
-
toUrlString
-
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. -
protocol
-
hostname
-
port
-