Create a dictionary associating each entry in this list to its index.
()
| 750 | |
| 751 | /** Create a dictionary associating each entry in this list to its index. */ |
| 752 | public IntDict getOrder() { |
| 753 | IntDict outgoing = new IntDict(); |
| 754 | for (int i = 0; i < count; i++) { |
| 755 | outgoing.set(data[i], i); |
| 756 | } |
| 757 | return outgoing; |
| 758 | } |
| 759 | |
| 760 | |
| 761 | public String join(String separator) { |