returns the first of two given parameters that is not null , if either is , or otherwise throws a nullpointerexception . to find the first non-null element in an iterable , use iterables.find iterable , predicates.notnull . for varargs , use iterables.find arrays.aslist a , b , c , ... , predicates.notnull , static importing as necessary . note : if first is represented as an optional , this can be accomplished with optional #or object first.or second . that approach also allows for lazy evaluation of the fallback instance , using optional #or supplier first.or supplier . concode_field_sep ValueHolder next concode_elem_sep ValueHolder holderTail concode_elem_sep String name concode_elem_sep String className concode_elem_sep boolean omitNullValues concode_elem_sep ValueHolder holderHead concode_elem_sep Object value concode_field_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper add concode_elem_sep ToStringHelper omitNullValues concode_elem_sep ValueHolder addHolder concode_elem_sep ToStringHelper addHolder concode_elem_sep ToStringHelper addHolder concode_elem_sep ToStringHelper toStringHelper concode_elem_sep ToStringHelper toStringHelper concode_elem_sep ToStringHelper toStringHelper concode_elem_sep String toString concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue concode_elem_sep ToStringHelper addValue
T function ( @ Nullable T arg0 , @ Nullable T arg1 ) { return arg0 != null ? arg0 : checkNotNull ( arg1 ) ; }