List of utility methods to do List First Item
T | removeFirst(List Remove the first element in the list. return list.remove(0);
|
T | removeFirstElement(List Removes and returns the element at index 0, or null if the List is empty. if (l.isEmpty()) { return null; return l.remove(0); |
List | removeFirstHalfElements(final List remove First Half Elements if (list.size() < 2) { return list; return list.subList(list.size() / 2 - 1, list.size()); |
String | replace(int codePoint, int firstCharacterInGroup, List replace int relative = codePoint - firstCharacterInGroup; int taget = relative % referenceList.size(); return referenceList.get(taget); |
void | swap(List list, int firstIndex, int secondIndex) Swaps the two rows. Object backup; backup = list.get(firstIndex); list.set(firstIndex, list.get(secondIndex)); list.set(secondIndex, backup); |