Record Class WeatherProbe.Hop
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherProbe.Hop
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherProbe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelossPercentrecord component.intnumber()Returns the value of thenumberrecord component.received()Returns the value of thereceivedrecord component.rttMs()Returns the value of therttMsrecord component.sent()Returns the value of thesentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hop
public Hop(int number, String address, Double lossPercent, Double rttMs, Integer sent, Integer received) Creates an instance of aHoprecord class.- Parameters:
number- the value for thenumberrecord componentaddress- the value for theaddressrecord componentlossPercent- the value for thelossPercentrecord componentrttMs- the value for therttMsrecord componentsent- the value for thesentrecord componentreceived- the value for thereceivedrecord 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. -
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
lossPercent
Returns the value of thelossPercentrecord component.- Returns:
- the value of the
lossPercentrecord component
-
rttMs
Returns the value of therttMsrecord component.- Returns:
- the value of the
rttMsrecord component
-
sent
Returns the value of thesentrecord component.- Returns:
- the value of the
sentrecord component
-
received
Returns the value of thereceivedrecord component.- Returns:
- the value of the
receivedrecord component
-