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

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

    private final Faker faker;

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

    public String planet() {
        return faker.resolve("space.planet");
    }

    public String moon() {
        return faker.resolve("space.moon");
    }

    public String galaxy() {
        return faker.resolve("space.galaxy");
    }

    public String nebula() {
        return faker.resolve("space.nebula");
    }

    public String starCluster() {
        return faker.resolve("space.star_cluster");
    }

    public String constellation() {
        return faker.resolve("space.constellation");
    }

    public String star() {
        return faker.resolve("space.star");
    }

    public String agency() {
        return faker.resolve("space.agency");
    }

    public String agencyAbbreviation() {
        return faker.resolve("space.agency_abv");
    }

    public String nasaSpaceCraft() {
        return faker.resolve("space.nasa_space_craft");
    }

    public String company() {
        return faker.resolve("space.company");
    }

    public String distanceMeasurement() {
        return faker.number().numberBetween(10, 100) + ' ' + faker.resolve("space.distance_measurement");
    }

    public String meteorite() {
        return faker.resolve("space.meteorite");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy