/** * Locate the index that contains the specified object. */ int indexOf(Object object, int index) { if (getLeftSubTree() != null) { int result = left.indexOf(object, index + left.relativePosition); if (result != -1) { return result; } } if (value == null ? value == object : value.equals(object)) { return index; } if (getRightSubTree() != null) { return right.indexOf(object, index + right.relativePosition); } return -1; }
/** * Locate the index that contains the specified object. */ int indexOf(Object object, int index) { if (getLeftSubTree() != null) { int result = left.indexOf(object, index + left.relativePosition); if (result != -1) { return result; } } if (value == null ? value == object : value.equals(object)) { return index; } if (getRightSubTree() != null) { return right.indexOf(object, index + right.relativePosition); } return -1; }
/** * Locate the index that contains the specified object. */ int indexOf(Object object, int index) { if (getLeftSubTree() != null) { int result = left.indexOf(object, index + left.relativePosition); if (result != -1) { return result; } } if (value == null ? value == object : value.equals(object)) { return index; } if (getRightSubTree() != null) { return right.indexOf(object, index + right.relativePosition); } return -1; }
/** * Locate the index that contains the specified object. */ int indexOf(Object object, int index) { if (getLeftSubTree() != null) { int result = left.indexOf(object, index + left.relativePosition); if (result != -1) { return result; } } if (value == null ? value == object : value.equals(object)) { return index; } if (getRightSubTree() != null) { return right.indexOf(object, index + right.relativePosition); } return -1; }
/** * Locate the index that contains the specified object. */ int indexOf(Object object, int index) { if (getLeftSubTree() != null) { int result = left.indexOf(object, index + left.relativePosition); if (result != -1) { return result; } } if (value == null ? value == object : value.equals(object)) { return index; } if (getRightSubTree() != null) { return right.indexOf(object, index + right.relativePosition); } return -1; }
/** * Locate the index that contains the specified object. */ int indexOf(Object object, int index) { if (getLeftSubTree() != null) { int result = left.indexOf(object, index + left.relativePosition); if (result != -1) { return result; } } if (value == null ? value == object : value.equals(object)) { return index; } if (getRightSubTree() != null) { return right.indexOf(object, index + right.relativePosition); } return -1; }
/** * Locate the index that contains the specified object. */ int indexOf(Object object, int index) { if (getLeftSubTree() != null) { int result = left.indexOf(object, index + left.relativePosition); if (result != -1) { return result; } } if (value == null ? value == object : value.equals(object)) { return index; } if (getRightSubTree() != null) { return right.indexOf(object, index + right.relativePosition); } return -1; }
/** * Searches for the index of an object in the list. * * @return the index of the object, -1 if not found */ public int indexOf(Object object) { // override to go 75% faster if (root == null) { return -1; } return root.indexOf(object, root.relativePosition); }
/** * Searches for the index of an object in the list. * * @return the index of the object, -1 if not found */ public int indexOf(Object object) { // override to go 75% faster if (root == null) { return -1; } return root.indexOf(object, root.relativePosition); }
/** * Searches for the index of an object in the list. * * @return the index of the object, -1 if not found */ public int indexOf(Object object) { // override to go 75% faster if (root == null) { return -1; } return root.indexOf(object, root.relativePosition); }
/** * Searches for the index of an object in the list. * * @return the index of the object, -1 if not found */ public int indexOf(Object object) { // override to go 75% faster if (root == null) { return -1; } return root.indexOf(object, root.relativePosition); }
/** * Searches for the index of an object in the list. * * @return the index of the object, -1 if not found */ public int indexOf(Object object) { // override to go 75% faster if (root == null) { return -1; } return root.indexOf(object, root.relativePosition); }
/** * Searches for the index of an object in the list. * * @return the index of the object, -1 if not found */ public int indexOf(Object object) { // override to go 75% faster if (root == null) { return -1; } return root.indexOf(object, root.relativePosition); }
/** * Searches for the index of an object in the list. * * @return the index of the object, -1 if not found */ public int indexOf(Object object) { // override to go 75% faster if (root == null) { return -1; } return root.indexOf(object, root.relativePosition); }