Enum SizeOfPolicyConfiguration.MaxDepthExceededBehavior

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ABORT
      Abort the SizeOf engine's traversal and immediately return the partially calculated size
      CONTINUE
      Warn about the exceeded max depth but continue traversal of the sized element
    • Method Detail

      • values

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

        public static SizeOfPolicyConfiguration.MaxDepthExceededBehavior 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
      • isAbort

        public boolean isAbort()
        Returns true if this behavior is equal to ABORT
        Returns:
        true if this behavior is equal to ABORT
      • isContinue

        public boolean isContinue()
        Returns true if this behavior is equal to CONTINUE
        Returns:
        true if this behavior is equal to CONTINUE