/** * Returns the element that is right before the given index. */ public static <T> T getPrevious(int index, List<T> list) { return list.get(previous(index, list)); }
/** * Returns the element that is right before the given index. */ public static <T> T getPrevious(int index, List<T> list) { return list.get(previous(index, list)); }