Package org.apache.commons.rng.sampling
Enum CompositeSamplers.SamplerBuilder.Specialisation
- java.lang.Object
-
- java.lang.Enum<CompositeSamplers.SamplerBuilder.Specialisation>
-
- org.apache.commons.rng.sampling.CompositeSamplers.SamplerBuilder.Specialisation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CompositeSamplers.SamplerBuilder.Specialisation>
- Enclosing class:
- CompositeSamplers.SamplerBuilder<S>
static enum CompositeSamplers.SamplerBuilder.Specialisation extends java.lang.Enum<CompositeSamplers.SamplerBuilder.Specialisation>
The specialisation of composite sampler to build. This is used to determine if specialised interfaces from the sampler type must be supported, e.g.SharedStateSampler
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
No specialisation.SHARED_STATE_SAMPLER
Instance ofSharedStateSampler
.
-
Constructor Summary
Constructors Modifier Constructor Description private
Specialisation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompositeSamplers.SamplerBuilder.Specialisation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CompositeSamplers.SamplerBuilder.Specialisation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHARED_STATE_SAMPLER
public static final CompositeSamplers.SamplerBuilder.Specialisation SHARED_STATE_SAMPLER
Instance ofSharedStateSampler
.
-
NONE
public static final CompositeSamplers.SamplerBuilder.Specialisation NONE
No specialisation.
-
-
Method Detail
-
values
public static CompositeSamplers.SamplerBuilder.Specialisation[] 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 (CompositeSamplers.SamplerBuilder.Specialisation c : CompositeSamplers.SamplerBuilder.Specialisation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompositeSamplers.SamplerBuilder.Specialisation 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 namejava.lang.NullPointerException
- if the argument is null
-
-