net.trajano.twiff.internal.util
Class ObjectUtils
java.lang.Object
org.apache.commons.lang.ObjectUtils
net.trajano.twiff.internal.util.ObjectUtils
public class ObjectUtils
- extends ObjectUtils
Extends ObjectUtils
with Java 5.0 constructs.
- Author:
- Archimedes Trajano
Method Summary |
static
|
defaultIfNull(T... values)
Scans through a list of values and returns the first non-null
value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectUtils
public ObjectUtils()
defaultIfNull
public static <T> T defaultIfNull(T... values)
- Scans through a list of values and returns the first non-
null
value. If all values are null
, this method will return
null
.
- Type Parameters:
T
- value type.- Parameters:
values
- a list of values
- Returns:
- first non-
null
l value.
Copyright © 2004-2005 trajano.net. All Rights Reserved.