java.lang.Object
com.thebuzzmedia.exiftool.commons.lang.Objects

public final class Objects extends Object
Static Objects Utilities.
  • Method Details

    • firstNonNull

      @SafeVarargs public static <T> T firstNonNull(T val1, T val2, T... others)
      Returns the first of two given parameters that is not null.
      Type Parameters:
      T - Type of parameters.
      Parameters:
      val1 - First value.
      val2 - Second value.
      others - Other value.
      Returns:
      First parameter if it is not null, second parameter otherwise.