Class Objects
- java.lang.Object
-
- com.thebuzzmedia.exiftool.commons.lang.Objects
-
public final class Objects extends Object
Static Objects Utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
firstNonNull(T val1, T val2, T... others)
Returns the first of two given parameters that is notnull
.
-
-
-
Method Detail
-
firstNonNull
@SafeVarargs public static <T> T firstNonNull(T val1, T val2, T... others)
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.
-
-