Enum NullPointerTester.ExceptionTypePolicy

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NPE_IAE_OR_UOE
      Exceptions should be NullPointerException, IllegalArgumentException, or UnsupportedOperationException.
      NPE_OR_UOE
      Exceptions should be NullPointerException or UnsupportedOperationException.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExceptionTypePolicy()  
    • Constructor Detail

      • ExceptionTypePolicy

        private ExceptionTypePolicy()
    • Method Detail

      • values

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

        public static NullPointerTester.ExceptionTypePolicy 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
      • isExpectedType

        public abstract boolean isExpectedType​(java.lang.Throwable cause)