|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.common.ESCollections
public final class ESCollections
Collections related utility for internal use.
Method Summary | ||
---|---|---|
static
|
find(List<?> list,
Class<T> clazz)
Finds the first occurrence of a value that matches the given type within the given list. |
|
static
|
find(Object[] array,
Class<T> clazz)
Finds the first occurrence of a value that matches the given type within the given object array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 matched
Optional
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 matched
Optional
containing the matched value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |