com.googlecode.jpattern.shared.util
Class ValueUtil

java.lang.Object
  extended by com.googlecode.jpattern.shared.util.ValueUtil

public abstract class ValueUtil
extends Object

Author:
Francesco Cina' 09/nov/2010 - 08.51.03

Constructor Summary
ValueUtil()
           
 
Method Summary
static
<E> E
objectNotNull(Class<E> aClass, E value, E defaultValue)
           
static
<E> E
objectNotNull(E value, E defaultValue)
           
static String stringNotNull(String value, String defaultValue)
           
static String stringNotNullTrimmed(String value, String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueUtil

public ValueUtil()
Method Detail

stringNotNull

public static String stringNotNull(String value,
                                   String defaultValue)

stringNotNullTrimmed

public static String stringNotNullTrimmed(String value,
                                          String defaultValue)

objectNotNull

public static <E> E objectNotNull(E value,
                                  E defaultValue)

objectNotNull

public static <E> E objectNotNull(Class<E> aClass,
                                  E value,
                                  E defaultValue)


Copyright © 2011. All Rights Reserved.