public abstract class SpringUtils extends Object
Constructor and Description |
---|
SpringUtils() |
Modifier and Type | Method and Description |
---|---|
static BeanDefinition |
addDependsOn(BeanDefinition bean,
String... beanNames) |
static String |
defaultIfEmpty(String value,
String defaultValue) |
static <T> T |
defaultIfNull(T value,
Supplier<T> supplier) |
static <T> T |
defaultIfNull(T value,
T defaultValue) |
static String |
dereferenceBean(String beanName) |
static boolean |
equalsIgnoreNull(Object obj1,
Object obj2) |
static boolean |
nullOrEquals(Object obj1,
Object obj2) |
static boolean |
nullSafeEquals(Object obj1,
Object obj2) |
static <T> T |
safeGetValue(Supplier<T> supplier) |
static <T> T |
safeGetValue(Supplier<T> supplier,
T defaultValue) |
public static BeanDefinition addDependsOn(BeanDefinition bean, String... beanNames)
public static <T> T defaultIfNull(T value, T defaultValue)
public static <T> T defaultIfNull(T value, Supplier<T> supplier)
public static <T> T safeGetValue(Supplier<T> supplier)
public static <T> T safeGetValue(Supplier<T> supplier, T defaultValue)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.