ObjectUtils { public static <K> K nvl( final K... objs) { if (null == objs) { return null; } K ret = null; for (final K obj : objs) { if (null != obj) { ret = obj; break; } } return ret; }  static String guid(); static String guid(
      final Object obj); static boolean equal(
      final Object obj1,
      final Object obj2); static int compare(
      final Comparable<T> o1,
      final T o2); static K nvl(
      final K... objs);  }
@Test public void testNvl() throws Exception { assertNull(nvl(null, null)); for (int i = 0; i < 100; ++i) { assertNotNull(ObjectUtils.nvl(randomUUID().toString(), randomUUID().toString())); } for (int i = 0; i < 100; ++i) { assertNotNull(ObjectUtils.nvl(randomUUID().toString(), randomUUID().toString(), randomUUID().toString())); } }