public final class ESCollections extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> com.google.common.base.Optional<T> |
find(List<?> list,
Class<T> clazz)
Finds the first occurrence of a value that matches the given type within the given list.
|
static <T> com.google.common.base.Optional<T> |
find(Object[] array,
Class<T> clazz)
Finds the first occurrence of a value that matches the given type within the given object array.
|
public static <T> com.google.common.base.Optional<T> find(Object[] array, Class<T> clazz)
T - the type to be matchedarray - the array to be searchedclazz - the class type to be matchedOptional containing the matched valuepublic static <T> com.google.common.base.Optional<T> find(List<?> list, Class<T> clazz)
T - the type to be matchedlist - the list to be searchedclazz - the class type to be matchedOptional containing the matched valueCopyright © 2017. All rights reserved.