Package it.unich.jgmp

Enum MPZ.PrimalityStatus

java.lang.Object
java.lang.Enum<MPZ.PrimalityStatus>
it.unich.jgmp.MPZ.PrimalityStatus
All Implemented Interfaces:
Serializable, Comparable<MPZ.PrimalityStatus>
Enclosing class:
MPZ

public static enum MPZ.PrimalityStatus extends Enum<MPZ.PrimalityStatus>
Result enumeration for the MPZ.isProbabPrime(int) method.
  • Enum Constant Details

    • NON_PRIME

      public static final MPZ.PrimalityStatus NON_PRIME
      The tested number is definitely non-prime.
    • PROBABLY_PRIME

      public static final MPZ.PrimalityStatus PROBABLY_PRIME
      The tested number is probably prime.
    • PRIME

      public static final MPZ.PrimalityStatus PRIME
      The tested number is definitely prime.
  • Constructor Details

    • PrimalityStatus

      private PrimalityStatus()
  • Method Details

    • values

      public static MPZ.PrimalityStatus[] 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 MPZ.PrimalityStatus 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 name
      NullPointerException - if the argument is null