public void clear() {

		for (int i=0; i<capacity; i++) {
		  links[i] = (short)(i+1);
		}
		links[capacity-1] = END_OF_LIST;
		freePtr = 0;
		Arrays.fill(heads, END_OF_LIST);
        size = 0;
	}
Removes all indexes from all lists.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/ShortListIndexer.java