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

com.github.javafaker.HitchhikersGuideToTheGalaxy 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 HitchhikersGuideToTheGalaxy {
    private final Faker faker;

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

    public String character() {
        return faker.fakeValuesService().resolve("hitchhikers_guide_to_the_galaxy.characters", this, faker);
    }

    public String location() {
        return faker.fakeValuesService().resolve("hitchhikers_guide_to_the_galaxy.locations", this, faker);
    }

    public String marvinQuote() {
        return faker.fakeValuesService().resolve("hitchhikers_guide_to_the_galaxy.marvin_quote", this, faker);
    }

    public String planet() {
        return faker.fakeValuesService().resolve("hitchhikers_guide_to_the_galaxy.planets", this, faker);
    }

    public String quote() {
        return faker.fakeValuesService().resolve("hitchhikers_guide_to_the_galaxy.quotes", this, faker);
    }

    public String specie() {
        return faker.fakeValuesService().resolve("hitchhikers_guide_to_the_galaxy.species", this, faker);
    }

    public String starship() {
        return faker.fakeValuesService().resolve("hitchhikers_guide_to_the_galaxy.starships", this, faker);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy