public class Weather extends Object
Modifier | Constructor and Description |
---|---|
protected |
Weather(Faker faker) |
Modifier and Type | Method and Description |
---|---|
String |
description()
Generates a short weather description.
|
String |
temperatureCelsius()
Generates a random temperature celsius between -30 and 38 degrees.
|
String |
temperatureCelsius(int minTemperature,
int maxTemperature)
Generates a random temperature celsius between two temperatures.
|
String |
temperatureFahrenheit()
Generates a random temperature fahrenheit between -22 and 100 degrees.
|
String |
temperatureFahrenheit(int minTemperature,
int maxTemperature)
Generates a random temperature fahrenheit between two temperatures.
|
protected Weather(Faker faker)
public String description()
public String temperatureCelsius()
public String temperatureFahrenheit()
public String temperatureCelsius(int minTemperature, int maxTemperature)
minTemperature
- the minimal temperaturemaxTemperature
- the maximal temperaturepublic String temperatureFahrenheit(int minTemperature, int maxTemperature)
minTemperature
- the minimal temperaturemaxTemperature
- the maximal temperatureCopyright © 2019. All rights reserved.