Record Class WeatherFunction.Location
java.lang.Object
java.lang.Record
org.bsc.spring.agentexecutor.function.WeatherFunction.Location
- Enclosing class:
- WeatherFunction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncountry()
Returns the value of thecountry
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.lat()
Returns the value of thelat
record component.lon()
Returns the value of thelon
record component.name()
Returns the value of thename
record component.region()
Returns the value of theregion
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Location
Creates an instance of aLocation
record class.- Parameters:
name
- the value for thename
record componentregion
- the value for theregion
record componentcountry
- the value for thecountry
record componentlat
- the value for thelat
record componentlon
- the value for thelon
record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
region
Returns the value of theregion
record component.- Returns:
- the value of the
region
record component
-
country
Returns the value of thecountry
record component.- Returns:
- the value of the
country
record component
-
lat
Returns the value of thelat
record component.- Returns:
- the value of the
lat
record component
-
lon
Returns the value of thelon
record component.- Returns:
- the value of the
lon
record component
-