com.google.inject.internal
Class Nullability
java.lang.Object
com.google.inject.internal.Nullability
public class Nullability
- extends Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowsNull
public static boolean allowsNull(Annotation[] annotations)
Copyright © 2006-2014 Google, Inc.. All Rights Reserved.