List of utility methods to do List First Item
T | getFirst(List get First return source.isEmpty() ? null : source.get(0);
|
String | getFirstAsString(Map get First As String return getFirstAsString(multiValueMap, key, false);
|
List | getFirstColumn(List
Gets the first column. return getNthColumn(llo, 0, reason);
|
String | getFirstDuplicateValue(List get First Duplicate Value String message = null; int size = values.size(); for (int i = 0; i < size; i++) { String col1 = values.get(i); for (int j = i + 1; j < size; j++) { String col2 = values.get(j); if (col1.equals(col2)) { message = col1; ... |
T | getFirstElement(List extends T> list) get First Element for (int i = 0; i < list.size(); i++) { T obj = list.get(i); if (obj != null) return obj; return null; |
T | getFirstElement(List get First Element return collection.iterator().next();
|
T | getFirstElement(List get First Element if (list != null && list.size() >= 1) { return list.get(0); return null; |
T | getFirstElement(List This is a convenience method to return the first element from a list. if (!isEmpty(list)) { return list.get(0); return null; |
T | getFirstElementFromList(List get First Element From List return list.size() > 0 ? list.get(0) : null;
|
T | getFirstFromList(List Peaks first element from list T value; if (valid(list)) { value = list.get(FIRST_INDEX); } else { value = null; return value; |