Top Description Constructors Methods
com.google.inject.internal

public Class Nullability

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation

Whether a member supports null values injected.

Support for Nullable annotations in Guice is loose. Any annotation type whose simplename is "Nullable" is sufficient to indicate support for null values injected.

This allows support for JSR-305's javax.annotation.meta.Nullable annotation and IntelliJ IDEA's org.jetbrains.annotations.Nullable.

Author
[email protected] (Jesse Wilson)

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
hasNullableAnnotation(Annotation[] annotations)

Returns true if the given annotation array contains an annotation named Nullable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Nullabilityback to summary
private Nullability()

Method Detail

hasNullableAnnotationback to summary
public static boolean hasNullableAnnotation(Annotation[] annotations)

Returns true if the given annotation array contains an annotation named Nullable.