public class OptionalAdaptorUtils
extends Object
| Constructor and Description |
|---|
OptionalAdaptorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<Object,List<Field>> |
getOptionalFields(Object obj)
Retrieves any Optional fields in a given object hierarchy.
|
static boolean |
hasOptionalFields(Object obj)
Determines if any Optional fields exist in a given object hierarchy.
|
static <T> T |
initializeAllNullOptionalFieldsAsEmpty(T obj)
Searches a given Object hierarchy and sets all null Optional fields to Optional.empty()
|
public static <T> T initializeAllNullOptionalFieldsAsEmpty(T obj)
T - the given type of the given Object hierarchyobj - an Object, Array, Iterable or Mappublic static boolean hasOptionalFields(Object obj)
obj - an Object, Array, Iterable or Mappublic static Map<Object,List<Field>> getOptionalFields(Object obj)
obj - an Object, Array, Iterable or MapCopyright © 2014-2016 NetApp, Inc. All Rights Reserved.