parquet-cli/src/main/java/org/apache/parquet/cli/util/Schemas.java
@SafeVarargs
  private static <E> E coalesce(E... objects) {
    for (E object : objects) {
      if (object != null) {
        return object;
      }
    }
    return null;
  }
@SafeVarargs
  private static <E> E coalesce(E... objects) {
    for (E object : objects) {
      if (object != null) {
        return object;
      }
    }
    return null;
  }
@ SafeVarargs private static < E > E coalesce ( E ... objects ) { for ( E object : objects ) { if ( object != null ) { return object ; } } return null ; }
Returns the first non-null object that is passed in.
Returns the first non - null object that is passed in .