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

Class Food

src/main/java/com/github/javafaker/Food.java:3–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package com.github.javafaker;
2
3public class Food {
4
5 private final Faker faker;
6
7 protected Food(Faker faker) {
8 this.faker = faker;
9 }
10
11 public String ingredient() {
12 return faker.fakeValuesService().resolve("food.ingredients", this, faker);
13 }
14
15 public String spice() {
16 return faker.fakeValuesService().resolve("food.spices", this, faker);
17 }
18
19 public String dish() {
20 return faker.fakeValuesService().resolve("food.dish", this, faker);
21 }
22
23 public String fruit() {
24 return faker.fakeValuesService().resolve("food.fruits", this, faker);
25 }
26
27 public String vegetable() {
28 return faker.fakeValuesService().resolve("food.vegetables", this, faker);
29 }
30
31 public String sushi() {
32 return faker.fakeValuesService().resolve("food.sushi", this, faker);
33 }
34
35 public String measurement() {
36 return faker.fakeValuesService().resolve("food.measurement_sizes", this, faker) +
37 " " + faker.fakeValuesService().resolve("food.measurements", this, faker);
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected