Class Objects
java.lang.Object
com.thebuzzmedia.exiftool.commons.lang.Objects
Static Objects Utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
firstNonNull
(T val1, T val2, T... others) Returns the first of two given parameters that is notnull
.
-
Method Details
-
firstNonNull
Returns the first of two given parameters that is notnull
.- 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.
-