|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface AssertNonNullIfFalse
Indicates that if the method returns false, then the value expressions are non-null.
For instance, if AbstractCollection.isEmpty()
is false, then
PriorityQueue.peek()
is nonnull. You can express
this relationship as:
@AssertNonNullIfFalse({"peek()"})
public boolean isEmpty() { ... }
NonNull
,
NullnessChecker
Modifier and Type | Required Element and Description |
---|---|
String[] |
value
The value can be: fields on receiver object. |
Element Detail |
---|
public abstract String[] value
next
, parent
.
list()
#
followed
by the parameter index (index starts with 0), e.g. #2
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |