Package cn.net.vidyo.faker
Class FakerNumber
java.lang.Object
cn.net.vidyo.faker.AbstractFaker
cn.net.vidyo.faker.FakerNumber
-
Field Summary
FieldsFields inherited from class cn.net.vidyo.faker.AbstractFaker
cacheMap, DEFAULT_BASE_PATH, DEFAULT_NULL_SPLIT, DEFAULT_SPLIT, DEFAULT_STRING_SPLIT, DEFAULT_TAB_SPLIT, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic doubletoDouble()static floattoFloat()static doubletoGuaranteeListInt(int amount) toGuaranteeListInt(int max, int amount) toGuaranteeListInt(int min, int max, int amount) toGuaranteeListInt(int min, int max, int amount, int loopMax) static inttoInt()static inttoInt(int max) static inttoInt(int min, int max) toListBoolean(int amount) toListDouble(int amount) toListFloat(int amount) toListGaussian(int amount) toListInt(int amount) toListInt(int max, int amount) toListInt(int min, int max, int amount) toListLong(int amount) static longtoLong()static intstatic intstatic intstatic inttoSetBoolean(int amount) toSetDouble(int amount) toSetFloat(int amount) toSetGaussian(int amount) toSetInt(int amount) toSetInt(int max, int amount) toSetInt(int min, int max, int amount) toSetLong(int amount) Methods inherited from class cn.net.vidyo.faker.AbstractFaker
bothPick, getClassPathResourceFile, getJarResource, getKeyName, getMap, isLoad, multiPick, multiPick, pick, pick, pick, pick, putResourceMap, putResourceMap, putResourceMapByName, putResourceMapByName, putResourceStringMap, putResourceStringMap
-
Field Details
-
random
-
-
Constructor Details
-
FakerNumber
public FakerNumber()
-
-
Method Details
-
toLoopInt
-
toLoopInt
-
toLoopInt
-
toLoopInt
-
toInt
public static int toInt() -
toInt
public static int toInt(int max) -
toInt
public static int toInt(int min, int max) -
toBoolean
public static boolean toBoolean() -
toDouble
public static double toDouble() -
toFloat
public static float toFloat() -
toLong
public static long toLong() -
toGaussian
public static double toGaussian() -
toSetInt
-
toSetInt
-
toSetInt
-
toSetBoolean
-
toSetDouble
-
toSetFloat
-
toSetLong
-
toSetGaussian
-
toListInt
-
toListInt
-
toListInt
-
toListBoolean
-
toListDouble
-
toListFloat
-
toListLong
-
toListGaussian
-
toGuaranteeListInt
-
toGuaranteeListInt
-
toGuaranteeListInt
-
toGuaranteeListInt
-