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

net.datafaker.providers.base.Mbti Maven / Gradle / Ivy

Go to download

This library is a improved port of JavaFaker (as well as Ruby's stympy/faker gem and 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: 2.4.2
Show newest version
package net.datafaker.providers.base;

import java.util.function.Supplier;

/**
 * Myers-Briggs Type Indicator
 *
 * @since 1.5.0
 */
public class Mbti extends AbstractProvider {

    private final Supplier choice;

    public Mbti(final BaseProviders faker) {
        super(faker);
        this.choice = () -> this.faker.resolve("mbti.choice");
    }

    public String type() {
        return resolve("mbti.".concat(choice.get()).concat(".type"));
    }

    public String name() {
        return resolve("mbti.".concat(choice.get()).concat(".name"));
    }

    public String characteristic() {
        return resolve("mbti.".concat(choice.get()).concat(".characteristic"));
    }

    public String personage() {
        return resolve("mbti.".concat(choice.get()).concat(".personage"));
    }

    public String merit() {
        return resolve("mbti.".concat(choice.get()).concat(".merit"));
    }

    public String weakness() {
        return resolve("mbti.".concat(choice.get()).concat(".weakness"));
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy