Class Objects


  • public class Objects
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Objects()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T firstNonNull​(T a, T b)  
      static <T> T firstNonNull​(T a, T b, T c)  
      static <T> T requireNonNull​(T obj, java.lang.String message)  
      • Methods inherited from class java.lang.Object

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

      • Objects

        public Objects()
    • Method Detail

      • requireNonNull

        public static <T> T requireNonNull​(T obj,
                                           java.lang.String message)
      • firstNonNull

        public static <T> T firstNonNull​(T a,
                                         T b)
      • firstNonNull

        public static <T> T firstNonNull​(T a,
                                         T b,
                                         T c)