Package net.jqwik.api

Enum EdgeCasesMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EdgeCasesMode>

    @API(status=EXPERIMENTAL,
         since="1.3.0")
    public enum EdgeCasesMode
    extends java.lang.Enum<EdgeCasesMode>
    The edge-cases mode determines if and when combined edge-cases of all parameters will be explicitly generated. It can be set in Property.edgeCases() for any property method.

    If it is not set explicitly mode MIXIN will be used unless the property has only a single parameter. Then NONE applies.

    See Also:
    Property
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FIRST
      Generate edge cases first.
      MIXIN
      Mix edge cases into random generation.
      NONE
      Do not _explicitly_ generate edge cases.
      NOT_SET  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean activated()  
      boolean generateFirst()  
      boolean mixIn()  
      static EdgeCasesMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EdgeCasesMode[] 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • FIRST

        public static final EdgeCasesMode FIRST
        Generate edge cases first.
      • MIXIN

        public static final EdgeCasesMode MIXIN
        Mix edge cases into random generation.
      • NONE

        public static final EdgeCasesMode NONE
        Do not _explicitly_ generate edge cases. They might be generated randomly though.
      • NOT_SET

        @API(status=INTERNAL)
        public static final EdgeCasesMode NOT_SET
    • Method Detail

      • values

        public static EdgeCasesMode[] 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 (EdgeCasesMode c : EdgeCasesMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EdgeCasesMode 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
      • generateFirst

        @API(status=INTERNAL)
        public boolean generateFirst()
      • mixIn

        @API(status=INTERNAL)
        public boolean mixIn()
      • activated

        @API(status=INTERNAL)
        public boolean activated()