Java Type Coalesce coalesce(Object src, Object defaultValue)

Here you can find the source of coalesce(Object src, Object defaultValue)

Description

coalesce

License

Open Source License

Declaration

public static Object coalesce(Object src, Object defaultValue) 

Method Source Code

//package com.java2s;

public class Main {
    public static Object coalesce(Object src, Object defaultValue) {
        return null != src ? src : defaultValue;
    }//from w ww .j  ava 2  s .  c o  m
}

Related

  1. coalesce(final T eitherThis, final T orThat)
  2. coalesce(final T... argv)
  3. coalesce(final T... objects)
  4. coalesce(final T... ts)
  5. coalesce(float... p)
  6. coalesce(Object... args)
  7. coalesce(Object... items)
  8. coalesce(String str1, String str2)
  9. coalesce(String... strings)