MCPcopy Create free account
hub / github.com/DiUS/java-faker / Aviation

Class Aviation

src/main/java/com/github/javafaker/Aviation.java:6–36  ·  view source on GitHub ↗

Generates aviation related strings.

Source from the content-addressed store, hash-verified

4 * Generates aviation related strings.
5 */
6public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected