
net.datafaker.providers.base.Mbti Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datafaker Show documentation
Show all versions of datafaker Show documentation
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.
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