Class Nullness


  • public class Nullness
    extends java.lang.Object
    The methods in this class allow to cast nullable reference to a non-nullable one. This is an internal class, and it is not meant to be used as a public API.
    • Constructor Summary

      Constructors 
      Constructor Description
      Nullness()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T castNonNull​(T ref)  
      static <T> T castNonNull​(T ref, java.lang.String message)  
      • Methods inherited from class java.lang.Object

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

      • Nullness

        public Nullness()
    • Method Detail

      • castNonNull

        public static <T> T castNonNull​(T ref)
      • castNonNull

        public static <T> T castNonNull​(T ref,
                                        java.lang.String message)