Package de.tilman_neumann.jml.factor
Enum TestNumberNature
- java.lang.Object
-
- java.lang.Enum<TestNumberNature>
-
- de.tilman_neumann.jml.factor.TestNumberNature
-
- All Implemented Interfaces:
Serializable
,Comparable<TestNumberNature>
public enum TestNumberNature extends Enum<TestNumberNature>
Definition of the "nature" of test numbers.- Author:
- Tilman Neumann
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MODERATE_SEMIPRIMES
Odd semiprimes N=a*b with min(a,b) >= cbrt(N).QUITE_HARD_SEMIPRIMES
Odd semiprimes N=a*b with bitLength(min(a,b)) == bitLength(N)/2 - 1 bits.RANDOM_COMPOSITES
Arbitrary random composite numbers N chosen from a certain bit length.RANDOM_ODD_COMPOSITES
Random odd composite numbers N chosen from a certain bit length.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestNumberNature
valueOf(String name)
Returns the enum constant of this type with the specified name.static TestNumberNature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RANDOM_COMPOSITES
public static final TestNumberNature RANDOM_COMPOSITES
Arbitrary random composite numbers N chosen from a certain bit length. Note that there are no such numbers with less than 3 bits.
-
RANDOM_ODD_COMPOSITES
public static final TestNumberNature RANDOM_ODD_COMPOSITES
Random odd composite numbers N chosen from a certain bit length. Note that there are no such numbers with less than 4 bits.
-
MODERATE_SEMIPRIMES
public static final TestNumberNature MODERATE_SEMIPRIMES
Odd semiprimes N=a*b with min(a,b) >= cbrt(N). Note that there are no such numbers with less than 4 bits.
-
QUITE_HARD_SEMIPRIMES
public static final TestNumberNature QUITE_HARD_SEMIPRIMES
Odd semiprimes N=a*b with bitLength(min(a,b)) == bitLength(N)/2 - 1 bits.
-
-
Method Detail
-
values
public static TestNumberNature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TestNumberNature c : TestNumberNature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TestNumberNature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-