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

com.github.javafaker.Dog 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 Dog {

    private final Faker faker;

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

    public String name() {
        return faker.fakeValuesService().resolve("creature.dog.name", this, faker);
    }

    public String breed() {
        return faker.fakeValuesService().resolve("creature.dog.breed", this, faker);
    }

    public String sound() {
        return faker.fakeValuesService().resolve("creature.dog.sound", this, faker);
    }

    public String memePhrase() {
        return faker.fakeValuesService().resolve("creature.dog.meme_phrase", this, faker);
    }

    public String age() {
        return faker.fakeValuesService().resolve("creature.dog.age", this, faker);
    }

    public String coatLength() {
        return faker.fakeValuesService().resolve("creature.dog.coat_length", this, faker);
    }

    public String gender() {
        return faker.fakeValuesService().resolve("creature.dog.gender", this, faker);
    }

    public String size() {
        return faker.fakeValuesService().resolve("creature.dog.size", this, faker);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy