Record Class PhysicalLocationService.Result
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.location.PhysicalLocationService.Result
- Enclosing class:
PhysicalLocationService
public static record PhysicalLocationService.Result(SystemPhysicalLocationStore.Status status, String location)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(SystemPhysicalLocationStore.Status status, String location) Creates an instance of aResultrecord 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.location()Returns the value of thelocationrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
status- the value for thestatusrecord componentlocation- the value for thelocationrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-