List of utility methods to do List First Item
T | first(List first return l.get(0);
|
T | first(List Get the first element from a list. return l.get(0);
|
T | first(List first return isNullOrEmpty(list) ? null : list.get(0);
|
T | first(List first return first(list, null);
|
T | first(List first return isEmpty(list) ? null : list.get(0);
|
T | first(List Returns the first element of the passed list, null if the list is empty or null.
return isNotEmpty(list) ? list.get(0) : null;
|
T | first(List first if (list == null || list.isEmpty()) throw new IllegalArgumentException("List is empty"); return list.get(0); |
T | first(List first return get(list, 0);
|
T | first(List first if (list.size() < 1) { throw new NoSuchElementException("Collection does not have a enough elements"); return list.get(0); |
T | first(List first if (list.isEmpty()) { return null; return list.get(0); |