Package it.unich.jgmp
Enum MPZ.PrimalityStatus
- All Implemented Interfaces:
Serializable
,Comparable<MPZ.PrimalityStatus>
- Enclosing class:
MPZ
Result enumeration for the
MPZ.isProbabPrime(int)
method.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe tested number is definitely non-prime.The tested number is definitely prime.The tested number is probably prime. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MPZ.PrimalityStatus
Returns the enum constant of this type with the specified name.static MPZ.PrimalityStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NON_PRIME
The tested number is definitely non-prime. -
PROBABLY_PRIME
The tested number is probably prime. -
PRIME
The tested number is definitely prime.
-
-
Constructor Details
-
PrimalityStatus
private PrimalityStatus()
-
-
Method Details
-
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
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
-