Class Nullability


  • public class Nullability
    extends java.lang.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.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Nullability()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean allowsNull​(java.lang.annotation.Annotation[] annotations)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Nullability

        private Nullability()
    • Method Detail

      • allowsNull

        public static boolean allowsNull​(java.lang.annotation.Annotation[] annotations)