InternalApi

When applied to a declaration, marks the declaration as an internal API.

Internal APIs are APIs which are reserved for internal use only, typically within a single class or package. This annotation attempts to bridge the gap between design and language semantics.

For methods and constructors, usually this means the method should not be invoked directly by other classes in the class hierarchy, except the class specifying this annotation. For classes, usually this means the method should not be used outside of the package of the specified class.

Properties

Link copied to clipboard

Message explaining the reason for the annotation.

Link copied to clipboard

If present, specifies a code fragment which should be used in place of the API.