Record Class WeatherFunction.Current
java.lang.Object
java.lang.Record
org.bsc.spring.agentexecutor.function.WeatherFunction.Current
- Enclosing class:
- WeatherFunction
public static record WeatherFunction.Current(String temp_f, WeatherFunction.Condition condition, String wind_mph, String humidity)
extends Record
-
Constructor Summary
ConstructorDescriptionCurrent
(String temp_f, WeatherFunction.Condition condition, String wind_mph, String humidity) Creates an instance of aCurrent
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecondition
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.humidity()
Returns the value of thehumidity
record component.temp_f()
Returns the value of thetemp_f
record component.final String
toString()
Returns a string representation of this record class.wind_mph()
Returns the value of thewind_mph
record component.
-
Constructor Details
-
Current
public Current(String temp_f, WeatherFunction.Condition condition, String wind_mph, String humidity) Creates an instance of aCurrent
record class.- Parameters:
temp_f
- the value for thetemp_f
record componentcondition
- the value for thecondition
record componentwind_mph
- the value for thewind_mph
record componenthumidity
- the value for thehumidity
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)
. -
temp_f
Returns the value of thetemp_f
record component.- Returns:
- the value of the
temp_f
record component
-
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-
wind_mph
Returns the value of thewind_mph
record component.- Returns:
- the value of the
wind_mph
record component
-
humidity
Returns the value of thehumidity
record component.- Returns:
- the value of the
humidity
record component
-