Generates aviation related strings.
| 4 | * Generates aviation related strings. |
| 5 | */ |
| 6 | public class Aviation { |
| 7 | |
| 8 | private final Faker faker; |
| 9 | |
| 10 | protected Aviation(Faker faker) { |
| 11 | this.faker = faker; |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * @return some aircraft name/model/make e.g. "An-2". |
| 16 | */ |
| 17 | public String aircraft() { |
| 18 | return faker.fakeValuesService().fetchString("aviation.aircraft"); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Returns an airport ICAO code. |
| 23 | * See also: https://en.wikipedia.org/wiki/List_of_airports_by_ICAO_code:_A |
| 24 | */ |
| 25 | public String airport() { |
| 26 | return faker.fakeValuesService().fetchString("aviation.airport"); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Provides a METAR weather report. |
| 31 | * Have a look at https://en.wikipedia.org/wiki/METAR |
| 32 | */ |
| 33 | public String METAR() { |
| 34 | return faker.fakeValuesService().fetchString("aviation.metar"); |
| 35 | } |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected