Class Alternatives


  • public final class Alternatives
    extends Object
    • Method Detail

      • firstNotNull

        public static <T> T firstNotNull​(T... objects)
        Returns the first object that is not null
        Parameters:
        objects - The objects to process
        Returns:
        The first value that is not null. null when there is no not-null value