Package com.weather.info.model
Record Class WeatherResponseVO
java.lang.Object
java.lang.Record
com.weather.info.model.WeatherResponseVO
-
Constructor Summary
ConstructorsConstructorDescriptionWeatherResponseVO
(LocalDate date, long pincode, double temperature, String condition, String description, double feelsLike, double minimumTemperature, double maximumTemperature, double pressure, double humidity, double windSpeed, double windDirection) Creates an instance of aWeatherResponseVO
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecondition
record component.date()
Returns the value of thedate
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.double
Returns the value of thefeelsLike
record component.final int
hashCode()
Returns a hash code value for this object.double
humidity()
Returns the value of thehumidity
record component.double
Returns the value of themaximumTemperature
record component.double
Returns the value of theminimumTemperature
record component.long
pincode()
Returns the value of thepincode
record component.double
pressure()
Returns the value of thepressure
record component.double
Returns the value of thetemperature
record component.final String
toString()
Returns a string representation of this record class.double
Returns the value of thewindDirection
record component.double
Returns the value of thewindSpeed
record component.
-
Constructor Details
-
WeatherResponseVO
public WeatherResponseVO(LocalDate date, long pincode, double temperature, String condition, String description, double feelsLike, double minimumTemperature, double maximumTemperature, double pressure, double humidity, double windSpeed, double windDirection) Creates an instance of aWeatherResponseVO
record class.- Parameters:
date
- the value for thedate
record componentpincode
- the value for thepincode
record componenttemperature
- the value for thetemperature
record componentcondition
- the value for thecondition
record componentdescription
- the value for thedescription
record componentfeelsLike
- the value for thefeelsLike
record componentminimumTemperature
- the value for theminimumTemperature
record componentmaximumTemperature
- the value for themaximumTemperature
record componentpressure
- the value for thepressure
record componenthumidity
- the value for thehumidity
record componentwindSpeed
- the value for thewindSpeed
record componentwindDirection
- the value for thewindDirection
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
date
Returns the value of thedate
record component.- Returns:
- the value of the
date
record component
-
pincode
public long pincode()Returns the value of thepincode
record component.- Returns:
- the value of the
pincode
record component
-
temperature
public double temperature()Returns the value of thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
feelsLike
public double feelsLike()Returns the value of thefeelsLike
record component.- Returns:
- the value of the
feelsLike
record component
-
minimumTemperature
public double minimumTemperature()Returns the value of theminimumTemperature
record component.- Returns:
- the value of the
minimumTemperature
record component
-
maximumTemperature
public double maximumTemperature()Returns the value of themaximumTemperature
record component.- Returns:
- the value of the
maximumTemperature
record component
-
pressure
public double pressure()Returns the value of thepressure
record component.- Returns:
- the value of the
pressure
record component
-
humidity
public double humidity()Returns the value of thehumidity
record component.- Returns:
- the value of the
humidity
record component
-
windSpeed
public double windSpeed()Returns the value of thewindSpeed
record component.- Returns:
- the value of the
windSpeed
record component
-
windDirection
public double windDirection()Returns the value of thewindDirection
record component.- Returns:
- the value of the
windDirection
record component
-