Class BuildingBlocks


  • public final class BuildingBlocks
    extends java.lang.Object
    Even though this class is public, it is not part of the public API and can change at any time.
    • Method Detail

      • nextIntBounded

        public static Result<Seed,​java.lang.Integer> nextIntBounded​(int bound,
                                                                          Seed input)
      • 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)
      • nextInt

        public static Result<Seed,​java.lang.Integer> nextInt​(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)
      • nextDoubleFractional

        public static Result<Seed,​java.lang.Double> nextDoubleFractional​(Seed input)
      • nextFloatFractional

        public static Result<Seed,​java.lang.Float> nextFloatFractional​(Seed input)
      • unsafeNextDoubleBetween

        public static Result<Seed,​java.lang.Double> unsafeNextDoubleBetween​(double origin,
                                                                                  double bound,
                                                                                  Seed input)
      • nextLong

        public static Result<Seed,​java.lang.Long> nextLong​(Seed input)
      • nextLongBounded

        public static Result<Seed,​java.lang.Long> nextLongBounded​(long 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)
      • nextBoolean

        public static Result<Seed,​java.lang.Boolean> nextBoolean​(Seed input)
      • nextBytes

        public static Result<Seed,​com.jnape.palatable.lambda.adt.Unit> nextBytes​(byte[] dest,
                                                                                       Seed input)
      • nextGaussian

        public static Result<Seed,​java.lang.Double> nextGaussian​(Seed input)
      • perturb

        public static Seed perturb​(long value,
                                   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)