private static enum NullPointerTester.ExceptionTypePolicy extends java.lang.Enum<NullPointerTester.ExceptionTypePolicy>
NullPointerTester
.Enum Constant and Description |
---|
NPE_IAE_OR_UOE
Exceptions should be
NullPointerException ,
IllegalArgumentException , or
UnsupportedOperationException . |
NPE_OR_UOE
Exceptions should be
NullPointerException or
UnsupportedOperationException . |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isExpectedType(java.lang.Throwable cause) |
static NullPointerTester.ExceptionTypePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NullPointerTester.ExceptionTypePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullPointerTester.ExceptionTypePolicy NPE_OR_UOE
NullPointerException
or
UnsupportedOperationException
.public static final NullPointerTester.ExceptionTypePolicy NPE_IAE_OR_UOE
NullPointerException
,
IllegalArgumentException
, or
UnsupportedOperationException
.public static NullPointerTester.ExceptionTypePolicy[] values()
for (NullPointerTester.ExceptionTypePolicy c : NullPointerTester.ExceptionTypePolicy.values()) System.out.println(c);
public static NullPointerTester.ExceptionTypePolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract boolean isExpectedType(java.lang.Throwable cause)