/** * Returns the index of the last occurrence of the specified * element. Returns <code>-1</code> if the receiver does not contain this element. * Tests for equality or identity as specified by <code>testForEquality</code>. * * @param element the element to be searched for. * @param testForEquality if <code>true</code> -> test for equality, otherwise for identity. * @return the index of the last occurrence of the element in the receiver; returns <code>-1</code> if the element is not found. */ public int lastIndexOf(Object element, boolean testForEquality) { return lastIndexOfFromTo(element, 0, size-1, testForEquality); } /**
/** * Returns the index of the last occurrence of the specified * element. Returns <code>-1</code> if the receiver does not contain this element. * Tests for equality or identity as specified by <code>testForEquality</code>. * * @param element the element to be searched for. * @param testForEquality if <code>true</code> -> test for equality, otherwise for identity. * @return the index of the last occurrence of the element in the receiver; returns <code>-1</code> if the element is not found. */ public int lastIndexOf(Object element, boolean testForEquality) { return lastIndexOfFromTo(element, 0, size-1, testForEquality); } /**
/** * Returns the index of the last occurrence of the specified element. * Returns <code>-1</code> if the receiver does not contain this element. * Tests for equality or identity as specified by * <code>testForEquality</code>. * * @param element * the element to be searched for. * @param testForEquality * if <code>true</code> -> test for equality, otherwise for * identity. * @return the index of the last occurrence of the element in the receiver; * returns <code>-1</code> if the element is not found. */ public int lastIndexOf(Object element, boolean testForEquality) { return lastIndexOfFromTo(element, 0, size - 1, testForEquality); }