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 Details

    • Current

      public Current(String temp_f, WeatherFunction.Condition condition, String wind_mph, String humidity)
      Creates an instance of a Current record class.
      Parameters:
      temp_f - the value for the temp_f record component
      condition - the value for the condition record component
      wind_mph - the value for the wind_mph record component
      humidity - the value for the humidity record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • temp_f

      public String temp_f()
      Returns the value of the temp_f record component.
      Returns:
      the value of the temp_f record component
    • condition

      public WeatherFunction.Condition condition()
      Returns the value of the condition record component.
      Returns:
      the value of the condition record component
    • wind_mph

      public String wind_mph()
      Returns the value of the wind_mph record component.
      Returns:
      the value of the wind_mph record component
    • humidity

      public String humidity()
      Returns the value of the humidity record component.
      Returns:
      the value of the humidity record component