Top Annotations Classes
[default module]

Package org.jetbrains.annotations


Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Blocking

Indicates that the annotated method is inherently blocking and should not be executed in a non-blocking context.

public @interface
BlockingExecutor

Indicates that the annotated executor (CoroutineContext, Scheduler) allows blocking methods execution.

public @interface
CheckReturnValue

Specifies that the method is impure and that its return value must be used.

public @interface
Contract

Specifies some aspects of the method behavior depending on the arguments.

public @interface
MustBeInvokedByOverriders

The annotation should be applied to overridable non-abstract method and indicates that all the overriders must invoke this method via superclass method invocation expression.

public @interface
Nls

Specifies that an element of the program is a user-visible string which needs to be localized.

public @interface
NonBlocking

Indicates that the annotated method is inherently non-blocking and can be executed in a non-blocking context.

public @interface
NonBlockingExecutor

Indicates that the annotated executor (CoroutineContext, Scheduler) does not allow blocking methods execution.

public @interface
NonNls

Specifies that an element of the program is not a user-visible string which needs to be localized, or does not contain such strings.

public @interface
NotNull

An element annotated with NotNull claims null value is forbidden to return (for methods), pass to (parameters) and hold (local variables and fields).

public @interface
Nullable

An element annotated with Nullable claims null value is perfectly valid to return (for methods), pass to (parameters) or hold in (local variables and fields).

public @interface
PropertyKey

Specifies that a method parameter, local variable, field or a method return value must be a valid property key in a specific resource bundle.

public @interface
Range

An annotation which allows to specify for integral type (byte, char, short, int, long) an allowed values range.

public @interface
TestOnly

A member or type annotated with TestOnly claims that it should be used from testing code only.

public @interface
UnknownNullability

An element annotated with UnknownNullability claims that no specific nullability should be assumed by static analyzer.

public @interface
Unmodifiable

An annotation which marks a java.util.Collection or java.util.Map type as unmodifiable.

public @interface
UnmodifiableView

An annotation which marks a java.util.Collection or java.util.Map type as unmodifiable view.

public @interface
VisibleForTesting

A member or type annotated with VisibleForTesting claims that its visibility is higher than necessary, only for testing purposes.

Class Summary

Modifier and TypeClass and Description
public class
ApiStatus

Set of annotations which can be used to specify status of API Element.

public class
Async

Helper annotations for asynchronous computation.

public class