Record Class PhysicalLocationConfig.Network
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.location.PhysicalLocationConfig.Network
- Enclosing class:
PhysicalLocationConfig
-
Constructor Summary
ConstructorsConstructorDescriptionNetwork(InetAddress address, int prefix) Creates an instance of aNetworkrecord class. -
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.intprefix()Returns the value of theprefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Network
Creates an instance of aNetworkrecord class.- Parameters:
address- the value for theaddressrecord componentprefix- the value for theprefixrecord 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. -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
prefix
public int prefix()Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-