Create a dictionary associating each entry in this list to its index.
()
| 731 | |
| 732 | /** Create a dictionary associating each entry in this list to its index. */ |
| 733 | public IntDict getOrder() { |
| 734 | IntDict outgoing = new IntDict(); |
| 735 | for (int i = 0; i < count; i++) { |
| 736 | outgoing.set(data[i], i); |
| 737 | } |
| 738 | return outgoing; |
| 739 | } |
| 740 | |
| 741 | |
| 742 | public String join(String separator) { |