utils/src/main/java/com/github/taucher2003/appenders/utils/Utilities.java
/**
     * Returns the first given parameter which is not null
     *
     * @param first the first element
     * @param other any other elements
     * @return the first element which is not null
     */
Returns the first given parameter which is not null
@param first the first element
@param other any other elements
@return the first element which is not null
Returns the first given parameter which is not null @param first the first element @param other any other elements @return the first element which is not null
@SafeVarargs
    public static <T> T firstNotNull(T first, T... other) {
        if (first != null) {
            return first;
        }
        for (T t : other) {
            if (t != null) {
                return t;
            }
        }
        return null;
    }
@ SafeVarargs public static < T > T firstNotNull ( T first , T ... other ) { if ( first != null ) { return first ; } for ( T t : other ) { if ( t != null ) { return t ; } } return null ; }
Returns the first given parameter which is not null
 @param first the first element
 @param other any other elements
 @return the first element which is not null
Returns the first given parameter which is not null @param first the first element @param other any other elements @return the first element which is not null