com.ning.http.util
Class MiscUtils

java.lang.Object
  extended by com.ning.http.util.MiscUtils

public final class MiscUtils
extends Object


Method Summary
static boolean getBoolean(String systemPropName, boolean defaultValue)
           
static boolean isNonEmpty(byte[] array)
           
static boolean isNonEmpty(Collection<?> collection)
           
static boolean isNonEmpty(Map<?,?> map)
           
static boolean isNonEmpty(Object[] array)
           
static boolean isNonEmpty(String string)
           
static
<T> T
withDefault(T value, T defaults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNonEmpty

public static boolean isNonEmpty(String string)

isNonEmpty

public static boolean isNonEmpty(Object[] array)

isNonEmpty

public static boolean isNonEmpty(byte[] array)

isNonEmpty

public static boolean isNonEmpty(Collection<?> collection)

isNonEmpty

public static boolean isNonEmpty(Map<?,?> map)

getBoolean

public static boolean getBoolean(String systemPropName,
                                 boolean defaultValue)

withDefault

public static <T> T withDefault(T value,
                                T defaults)


Copyright © 2014. All Rights Reserved.