# NonNullApi

@Target(value = [ElementType.TYPE, ElementType.PACKAGE])
@NotNull
@Nonnull
@TypeQualifierDefault(value = [ElementType.METHOD, ElementType.PARAMETER])
@Documented
@Retention(value = RetentionPolicy.RUNTIME)
annotation class NonNullApi(source)

Marks a type or a whole package as providing a non-null API by default. All parameter and return types are assumed to be Nonnull unless specifically marked as Nullable. All types of an annotated package inherit the package rule. Subpackages do not inherit nullability rules and must be annotated.

#### Since

4.2

## Functions

annotationType
Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
equals
Link copied to clipboard
abstract fun equals(p: Any): Boolean
hashCode
Link copied to clipboard
abstract fun hashCode(): Int
toString
Link copied to clipboard
abstract fun toString(): String