All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.team33.patterns.arbitrary.mimas.BitGenerator Maven / Gradle / Ivy

Go to download

Provides classes that support the generation of arbitrary values of virtually any type.

The newest version!
package de.team33.patterns.arbitrary.mimas;

import java.math.BigInteger;

interface BitGenerator {

    /**
     * Returns any non-negative {@link BigInteger} representing a sequence of significant bits of a given length.
     * In other words, the result is any value between zero (inclusive) and 2length (exclusive).
     * 

* A typical implementation will return an arbitrary value within the defined bounds, with each possible value * being equally probable. */ BigInteger anyBits(final int numBits); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy