All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javafaker.Food Maven / Gradle / Ivy

Go to download

This library is a port of Ruby's stympy/faker gem (as well as Perl's Data::Faker library) that generates fake data. It's useful when you're developing a new project and need some pretty data for showcase.

There is a newer version: 1.0.2
Show newest version
package com.github.javafaker;

public class Food {

    private final Faker faker;

    protected Food(Faker faker) {
        this.faker = faker;
    }

    public String ingredient() {
        return faker.fakeValuesService().resolve("food.ingredients", this, faker);
    }

    public String spice() {
        return faker.fakeValuesService().resolve("food.spices", this, faker);
    }

    public String measurement() {
        return faker.fakeValuesService().resolve("food.measurement_sizes", this, faker) +
            " " + faker.fakeValuesService().resolve("food.measurements", this, faker);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy