Enum TestNumberNature

java.lang.Object
java.lang.Enum<TestNumberNature>
de.tilman_neumann.jml.factor.TestNumberNature
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TestNumberNature>, java.lang.constant.Constable

public enum TestNumberNature
extends java.lang.Enum<TestNumberNature>
Definition of the "nature" of test numbers.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • 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

    Modifier and Type Method Description
    static TestNumberNature valueOf​(java.lang.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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 Details

    • values

      public static TestNumberNature[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TestNumberNature valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null