Stay organized with collections
Save and categorize content based on your preferences.
@Nonnull
@TypeQualifierDefault(value = ElementType.TYPE_USE)
@Retention(value = RetentionPolicy.CLASS)
@UnstableApi
annotation NonNullApi
Annotation to declare all type usages in the annotated instance as Nonnull
, unless explicitly marked with a nullable annotation.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-17 UTC.
[null,null,["Last updated 2025-07-17 UTC."],[],[],null,["# NonNullApi\n==========\n\nArtifact: [androidx.media3:media3-common](/jetpack/androidx/releases/media3) \n[View Source](https://cs.android.com/search?q=file:androidx/media3/common/util/NonNullApi.java+class:androidx.media3.common.util.NonNullApi)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/media3/common/util/NonNullApi \"View this page in Java\")\n\n\n```\n@Nonnull\n@TypeQualifierDefault(value = ElementType.TYPE_USE)\n@Retention(value = RetentionPolicy.CLASS)\n@UnstableApi\nannotation NonNullApi\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAnnotation to declare all type usages in the annotated instance as [Nonnull](https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html), unless explicitly marked with a nullable annotation."]]