Package software.kes.kraftwerk.core
Class BuildingBlocks
- java.lang.Object
-
- software.kes.kraftwerk.core.BuildingBlocks
-
public final class BuildingBlocks extends java.lang.ObjectEven though this class is public, it is not part of the public API and can change at any time.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckBound(long bound)static voidcheckCount(int count)static voidcheckMinMax(long min, long max)static voidcheckOriginBound(long origin, long bound)static Result<Seed,java.lang.Boolean>nextBoolean(Seed input)static Result<Seed,com.jnape.palatable.lambda.adt.Unit>nextBytes(byte[] dest, Seed input)static Result<Seed,java.lang.Double>nextDoubleFractional(Seed input)static Result<Seed,java.lang.Float>nextFloatFractional(Seed input)static Result<Seed,java.lang.Double>nextGaussian(Seed input)static Result<Seed,java.lang.Integer>nextInt(Seed input)static Result<Seed,java.lang.Integer>nextIntBetween(int min, int max, Seed input)static Result<Seed,java.lang.Integer>nextIntBounded(int bound, Seed input)static Result<Seed,java.lang.Integer>nextIntExclusive(int origin, int bound, Seed input)static Result<Seed,java.lang.Long>nextLong(Seed input)static Result<Seed,java.lang.Long>nextLongBetween(long min, long max, Seed input)static Result<Seed,java.lang.Long>nextLongBounded(long bound, Seed input)static Result<Seed,java.lang.Long>nextLongExclusive(long origin, long bound, Seed input)static Seedperturb(long value, Seed input)static Result<Seed,java.lang.Double>unsafeNextDoubleBetween(double origin, double bound, Seed input)static Result<Seed,java.lang.Integer>unsafeNextIntBetween(int min, int max, Seed input)static Result<Seed,java.lang.Integer>unsafeNextIntBounded(int bound, Seed input)static Result<Seed,java.lang.Integer>unsafeNextIntBoundedPowerOf2(int bound, Seed input)static Result<Seed,java.lang.Integer>unsafeNextIntExclusive(int origin, int range, Seed input)static Result<Seed,java.lang.Integer>unsafeNextIntExclusivePowerOf2(int origin, long range, Seed input)static Result<Seed,java.lang.Integer>unsafeNextIntExclusiveWide(int origin, long range, Seed input)static Result<Seed,java.lang.Long>unsafeNextLongBounded(int bound, Seed input)static Result<Seed,java.lang.Long>unsafeNextLongExclusive(long origin, long range, Seed input)static Result<Seed,java.lang.Long>unsafeNextLongExclusivePowerOf2(long origin, long range, Seed input)static Result<Seed,java.lang.Long>unsafeNextLongExclusiveWithOverflow(long origin, long bound, Seed input)
-
-
-
Method Detail
-
unsafeNextIntBoundedPowerOf2
public static Result<Seed,java.lang.Integer> unsafeNextIntBoundedPowerOf2(int bound, Seed input)
-
unsafeNextIntBounded
public static Result<Seed,java.lang.Integer> unsafeNextIntBounded(int bound, Seed input)
-
nextIntExclusive
public static Result<Seed,java.lang.Integer> nextIntExclusive(int origin, int bound, Seed input)
-
unsafeNextIntExclusivePowerOf2
public static Result<Seed,java.lang.Integer> unsafeNextIntExclusivePowerOf2(int origin, long range, Seed input)
-
unsafeNextIntExclusive
public static Result<Seed,java.lang.Integer> unsafeNextIntExclusive(int origin, int range, Seed input)
-
unsafeNextIntExclusiveWide
public static Result<Seed,java.lang.Integer> unsafeNextIntExclusiveWide(int origin, long range, Seed input)
-
nextIntBetween
public static Result<Seed,java.lang.Integer> nextIntBetween(int min, int max, Seed input)
-
unsafeNextIntBetween
public static Result<Seed,java.lang.Integer> unsafeNextIntBetween(int min, int max, Seed input)
-
unsafeNextDoubleBetween
public static Result<Seed,java.lang.Double> unsafeNextDoubleBetween(double origin, double bound, Seed input)
-
unsafeNextLongBounded
public static Result<Seed,java.lang.Long> unsafeNextLongBounded(int bound, Seed input)
-
nextLongExclusive
public static Result<Seed,java.lang.Long> nextLongExclusive(long origin, long bound, Seed input)
-
unsafeNextLongExclusivePowerOf2
public static Result<Seed,java.lang.Long> unsafeNextLongExclusivePowerOf2(long origin, long range, Seed input)
-
unsafeNextLongExclusive
public static Result<Seed,java.lang.Long> unsafeNextLongExclusive(long origin, long range, Seed input)
-
nextLongBetween
public static Result<Seed,java.lang.Long> nextLongBetween(long min, long max, Seed input)
-
unsafeNextLongExclusiveWithOverflow
public static Result<Seed,java.lang.Long> unsafeNextLongExclusiveWithOverflow(long origin, long bound, Seed input)
-
nextBytes
public static Result<Seed,com.jnape.palatable.lambda.adt.Unit> nextBytes(byte[] dest, Seed input)
-
checkBound
public static void checkBound(long bound)
-
checkOriginBound
public static void checkOriginBound(long origin, long bound)
-
checkMinMax
public static void checkMinMax(long min, long max)
-
checkCount
public static void checkCount(int count)
-
-