Top Constructors Methods
com.rometools.utils

public final Class Alternatives

extends Object
Class Inheritance
Imports
java.util.Objects, java.util.stream.Stream

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T> T

Returns:

The first value that is not null. null when there is no not-null value
firstNotNull
(final T...
The objects to process
objects
)

Returns the first object that is not null

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Alternativesback to summary
private Alternatives()

Method Detail

firstNotNullback to summary
public static <T> T firstNotNull(final T... objects)

Returns the first object that is not null

Parameters
objects:T[]

The objects to process

Returns:T

The first value that is not null. null when there is no not-null value

Annotations
@SafeVarargs