Top Description Methods
com.google.j2objc.annotations

public @Interface WeakOuter

extends Annotation
Annotations
@Target:TYPE, TYPE_USE, LOCAL_VARIABLE
@Retention:SOURCE
Static Imports
java.lang.annotation.ElementType.LOCAL_VARIABLE, .ElementType.TYPE, .ElementType.TYPE_USE, .RetentionPolicy.SOURCE

Annotation that indicates an inner class has a weak relationship to its owning class.

Lambdas can be given a weak outer reference by declaring a local variable with this annotation and assigning the lambda expression directly to the local variable. WeakOuter is only allowed on local variables, not fields, to encourage the annotation to be used where the lambda is declared.

Author
Tom Ball

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString