public static class

WeatherInfo.DayForecast.Builder

extends Object
java.lang.Object
   ↳ lineageos.weather.WeatherInfo.DayForecast.Builder

Class Overview

Builder class for WeatherInfo.DayForecast

Summary

Public Constructors
WeatherInfo.DayForecast.Builder(int conditionCode)
Public Methods
WeatherInfo.DayForecast build()
Combine all of the options that have been set and return a new WeatherInfo.DayForecast object
WeatherInfo.DayForecast.Builder setHigh(double high)
WeatherInfo.DayForecast.Builder setLow(double low)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WeatherInfo.DayForecast.Builder (int conditionCode)

added in API level 5

Parameters
conditionCode int: A valid weather condition code. See WeatherContract.WeatherColumns.WeatherCode for valid values. Attempting to pass an invalid code will get you an IllegalArgumentException

Public Methods

public WeatherInfo.DayForecast build ()

added in API level 5

Combine all of the options that have been set and return a new WeatherInfo.DayForecast object

Returns
WeatherInfo.DayForecast WeatherInfo.DayForecast

public WeatherInfo.DayForecast.Builder setHigh (double high)

added in API level 5

Parameters
high double: Forecast high temperature for this day. Attempting to pass an invalid double value will get you an IllegalArgumentException
Returns
WeatherInfo.DayForecast.Builder The WeatherInfo.Builder instance

public WeatherInfo.DayForecast.Builder setLow (double low)

added in API level 5

Parameters
low double: Forecast low temperate for this day. Attempting to pass an invalid double value will get you an IllegalArgumentException
Returns
WeatherInfo.DayForecast.Builder The WeatherInfo.Builder instance