text: public override int indexOf(object @object){int pos = 0;java.util.LinkedList.Link<E> link = voidLink.next;if (@object != null){while (link != voidLink){if (@object.Equals(link.data)){return pos;}link = link.next;pos++;}}else{while (link != voidLink){if ((object)link.data == null){return pos;}link = link.next;pos++;}}return -1;}