Here you can find the source of coalesce(T o0, T o1)
public static <T> T coalesce(T o0, T o1)
//package com.java2s; /**/*from w w w .j av a 2s.co m*/ * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.md file. */ public class Main { public static <T> T coalesce(T o0, T o1) { return o0 != null ? o0 : o1; } }