java.lang.Object
java.lang.Record
org.jnetpcap.windows.PcapRmt.Source
- Record Components:
type
- the typehost
- the hostport
- the portname
- the name
- All Implemented Interfaces:
PcapRmt
- Enclosing interface:
PcapRmt
public static record PcapRmt.Source(int type, String host, String port, String name)
extends Record
implements PcapRmt
Remote RPCAP source string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jnetpcap.windows.PcapRmt
PcapRmt.Auth, PcapRmt.Source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.host()
Returns the value of thehost
record component.name()
Returns the value of thename
record component.port()
Returns the value of theport
record component.final String
toString()
Returns a string representation of this record class.int
type()
Returns the value of thetype
record component.PcapSrc type as constant..
-
Constructor Details
-
Method Details
-
typeAsPcapSrc
PcapSrc type as constant..- Returns:
- the pcap src
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
type
public int type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
host
Returns the value of thehost
record component.- Returns:
- the value of the
host
record component
-
port
Returns the value of theport
record component.- Returns:
- the value of the
port
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-