Package mocka.generator.primitive
Class FloatGenerator
-
Field Summary
Fields inherited from class mocka.generator.AbstractGenerator
key, randomProvider, type -
Method Summary
Modifier and TypeMethodDescriptionget()returns a random float valuegetFloat()returns a random float within the full float range [-Float.MAX_VALUE, Float.MAX_VALUE].returns a random float between the given min and max values [min, max].static FloatGeneratorreturns a random negative float [-Float.MAX_VALUE, -Float.MIN_VALUE).returns a random positive float (Float.MIN_VALUE, Float.MAX_VALUE].picks a random float from the given array.picks a random float from the given list.Methods inherited from class mocka.generator.AbstractGenerator
getKey, getType
-
Method Details
-
getInstance
-
get
returns a random float value -
getFloat
returns a random float within the full float range [-Float.MAX_VALUE, Float.MAX_VALUE]. -
getFloat
returns a random float between the given min and max values [min, max]. -
getPositiveFloat
returns a random positive float (Float.MIN_VALUE, Float.MAX_VALUE]. -
getNegativeFloat
returns a random negative float [-Float.MAX_VALUE, -Float.MIN_VALUE). -
pickFrom
picks a random float from the given list. -
pickFrom
picks a random float from the given array.
-