Class Null


  • public class Null
    extends java.lang.Object
    based on org/checkerframework/checker/nullness/util/NullnessUtil.java
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> @NonNull T nonNull​(@Nullable T value)  
      static <T> T nullable​(@Nullable T value)
      suppress nullable warning for values that may be null.
      • Methods inherited from class java.lang.Object

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

      • nonNull

        @EnsuresNonNull("#1")
        public static <T> @NonNull T nonNull​(@Nullable T value)
      • nullable

        @EnsuresNonNull("#1")
        public static <T> T nullable​(@Nullable T value)
        suppress nullable warning for values that may be null.
        Type Parameters:
        T - the type of value
        Parameters:
        value - the value that may be null
        Returns:
        value