net.trajano.twiff.internal.util
Class ObjectUtils

java.lang.Object
  extended by org.apache.commons.lang.ObjectUtils
      extended by net.trajano.twiff.internal.util.ObjectUtils

public class ObjectUtils
extends ObjectUtils

Extends ObjectUtils with Java 5.0 constructs.

Author:
Archimedes Trajano

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.lang.ObjectUtils
ObjectUtils.Null
 
Field Summary
 
Fields inherited from class org.apache.commons.lang.ObjectUtils
NULL
 
Constructor Summary
ObjectUtils()
           
 
Method Summary
static
<T> T
defaultIfNull(T... values)
          Scans through a list of values and returns the first non-null value.
 
Methods inherited from class org.apache.commons.lang.ObjectUtils
appendIdentityToString, defaultIfNull, equals, identityToString, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectUtils

public ObjectUtils()
Method Detail

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-nulll value.


Copyright © 2004-2005 trajano.net. All Rights Reserved.